| 1 | <?php |
||
| 21 | abstract class Subscription |
||
| 22 | { |
||
| 23 | /** @var Topic $topic */ |
||
| 24 | protected $forum = null; |
||
| 25 | |||
| 26 | /** @var Topic $topic */ |
||
| 27 | protected $topic = null; |
||
| 28 | |||
| 29 | /** @var UserInterface $ownedBy */ |
||
| 30 | protected $ownedBy = null; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * |
||
| 34 | * @access public |
||
| 35 | */ |
||
| 36 | public function __construct() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get topic |
||
| 43 | * |
||
| 44 | * @return Forum |
||
|
|
|||
| 45 | */ |
||
| 46 | public function getForum() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Set topic |
||
| 53 | * |
||
| 54 | * @param Forum $forum |
||
| 55 | * @return Subscription |
||
| 56 | */ |
||
| 57 | public function setForum(ConcreteForum $forum = null) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get topic |
||
| 66 | * |
||
| 67 | * @return Topic |
||
| 68 | */ |
||
| 69 | public function getTopic() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Set topic |
||
| 76 | * |
||
| 77 | * @param Topic $topic |
||
| 78 | * @return Subscription |
||
| 79 | */ |
||
| 80 | public function setTopic(ConcreteTopic $topic = null) |
||
| 86 | |||
| 87 | /** |
||
| 88 | * Get owned_by |
||
| 89 | * |
||
| 90 | * @return UserInterface |
||
| 91 | */ |
||
| 92 | public function getOwnedBy() |
||
| 96 | |||
| 97 | /** |
||
| 98 | * Set owned_by |
||
| 99 | * |
||
| 100 | * @param UserInterface $ownedBy |
||
| 101 | * @return Subscription |
||
| 102 | */ |
||
| 103 | public function setOwnedBy(UserInterface $ownedBy = null) |
||
| 109 | } |
||
| 110 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.