-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support timeline in albums and album
- Loading branch information
Showing
42 changed files
with
901 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App\Contracts\Http\Requests; | ||
|
||
use App\Enum\TimelineAlbumGranularity; | ||
|
||
interface HasTimelineAlbum | ||
{ | ||
/** | ||
* @return TimelineAlbumGranularity|null | ||
*/ | ||
public function album_timeline(): ?TimelineAlbumGranularity; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App\Contracts\Http\Requests; | ||
|
||
use App\Enum\TimelinePhotoGranularity; | ||
|
||
interface HasTimelinePhoto | ||
{ | ||
/** | ||
* @return TimelinePhotoGranularity|null | ||
*/ | ||
public function photo_timeline(): ?TimelinePhotoGranularity; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace App\Enum; | ||
|
||
/** | ||
* Defines the possible granularities for album timelines. | ||
*/ | ||
enum TimelineAlbumGranularity: string | ||
{ | ||
case DEFAULT = 'default'; | ||
case DISABLED = 'disabled'; | ||
case YEAR = 'year'; | ||
case MONTH = 'month'; | ||
case DAY = 'day'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace App\Enum; | ||
|
||
/** | ||
* Defines the possible granularities for photo timelines. | ||
*/ | ||
enum TimelinePhotoGranularity: string | ||
{ | ||
case DEFAULT = 'default'; | ||
case DISABLED = 'disabled'; | ||
case YEAR = 'year'; | ||
case MONTH = 'month'; | ||
case DAY = 'day'; | ||
case HOUR = 'hour'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Http\Requests\Traits; | ||
|
||
use App\Enum\TimelineAlbumGranularity; | ||
|
||
trait HasTimelineAlbumTrait | ||
{ | ||
protected ?TimelineAlbumGranularity $album_timeline = null; | ||
|
||
/** | ||
* @return TimelineAlbumGranularity|null | ||
*/ | ||
public function album_timeline(): ?TimelineAlbumGranularity | ||
{ | ||
return $this->album_timeline; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Http\Requests\Traits; | ||
|
||
use App\Enum\TimelinePhotoGranularity; | ||
|
||
trait HasTimelinePhotoTrait | ||
{ | ||
protected ?TimelinePhotoGranularity $photo_timeline = null; | ||
|
||
/** | ||
* @return TimelinePhotoGranularity|null | ||
*/ | ||
public function photo_timeline(): ?TimelinePhotoGranularity | ||
{ | ||
return $this->photo_timeline; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.