| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class MediaBuilder extends Component |
||
| 19 | { |
||
| 20 | use SaveModelTrait; |
||
|
|
|||
| 21 | |||
| 22 | /** |
||
| 23 | * @var \app\models\Media |
||
| 24 | */ |
||
| 25 | public $media; |
||
| 26 | |||
| 27 | public function init() |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | public function setIdents(Post $post) |
||
| 36 | { |
||
| 37 | $this->media->instagram_id = $post->id; |
||
| 38 | $this->media->shortcode = $post->shortcode; |
||
| 39 | |||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setDetails(Post $post) |
||
| 53 | } |
||
| 54 | |||
| 55 | public function save() |
||
| 58 | } |
||
| 59 | |||
| 60 | protected function getNormalizedTakenAt(Post $post): string |
||
| 63 | } |
||
| 64 | } |