Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * This file is part of the MarketReminder project.
- *
- * (c) Guillaume Loulier <contact@guillaumeloulier.fr>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace App\Models;
- /**
- * Class Image
- *
- * @author Guillaume Loulier <contact@guillaumeloulier.fr>
- */
- class Image
- {
- /**
- * @var int
- */
- private $id;
- /**
- * @var \DateTime
- */
- private $creationDate;
- /**
- * @var \DateTime
- */
- private $modificationDate;
- /**
- * @var string
- */
- private $alt;
- /**
- * @var string
- */
- private $url;
- /**
- * @var User
- */
- private $user;
- /**
- * Image constructor.
- */
- public function __construct()
- {
- $this->creationDate = new \DateTime();
- }
- /**
- * @return int
- */
- public function getId():? int
- {
- return $this->id;
- }
- /**
- * @return \DateTime
- */
- public function getCreationDate(): \DateTime
- {
- return $this->creationDate;
- }
- /**
- * @param \DateTime $creationDate
- */
- public function setCreationDate(\DateTime $creationDate)
- {
- $this->creationDate = $creationDate;
- }
- /**
- * @return \DateTime
- */
- public function getModificationDate():? \DateTime
- {
- return $this->modificationDate;
- }
- /**
- * @param \DateTime $modificationDate
- */
- public function setModificationDate(\DateTime $modificationDate)
- {
- $this->modificationDate = $modificationDate;
- }
- /**
- * @return string
- */
- public function getAlt(): string
- {
- return $this->alt;
- }
- /**
- * @param string $alt
- */
- public function setAlt(string $alt)
- {
- $this->alt = $alt;
- }
- /**
- * @return string
- */
- public function getUrl(): string
- {
- return $this->url;
- }
- /**
- * @param string $url
- */
- public function setUrl(string $url)
- {
- $this->url = $url;
- }
- /**
- * @return User
- */
- public function getUser(): User
- {
- return $this->user;
- }
- /**
- * @param User $user
- */
- public function setUser(User $user)
- {
- $this->user = $user;
- }
- }
Add Comment
Please, Sign In to add comment