| 1 | <?php |
||
| 22 | class RelatedArticle implements RelatedArticleInterface |
||
| 23 | { |
||
| 24 | use TimestampableTrait, SoftDeletableTrait; |
||
| 25 | |||
| 26 | protected $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var ArticleInterface |
||
| 30 | */ |
||
| 31 | protected $relatesTo; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var ArticleInterface |
||
| 35 | */ |
||
| 36 | protected $article; |
||
| 37 | |||
| 38 | public function __construct() |
||
| 42 | |||
| 43 | public function getId(): int |
||
| 47 | |||
| 48 | public function getRelatesTo(): ?ArticleInterface |
||
| 52 | |||
| 53 | public function setRelatesTo(?ArticleInterface $relatesTo): void |
||
| 57 | |||
| 58 | public function getArticle(): ArticleInterface |
||
| 62 | |||
| 63 | public function setArticle(ArticleInterface $article): void |
||
| 67 | } |
||
| 68 |