createdAt = new \DateTimeImmutable('now'); $this->createdBy = new NullAccount(); } /** * Get id. * * @return int Model id * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Set the card * * @param int $id Card id * * @return void * * @since 1.0.0 */ public function setCard(int $id) : void { $this->card = $id; } /** * Get the card * * @return int * * @since 1.0.0 */ public function getCard() : int { return $this->card; } /** * Get the media files * * @return array * * @since 1.0.0 */ public function getMedia() : array { return $this->media; } /** * Add a media file * * @param mixed $media Media * * @return void * * @since 1.0.0 */ public function addMedia($media) : void { $this->media[] = $media; } /** * {@inheritdoc} */ public function jsonSerialize() : array { return []; } }