| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class News extends NewsModel |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @ORM\ManyToOne(targetEntity="Community") |
||
| 17 | */ |
||
| 18 | protected $community; |
||
| 19 | |||
| 20 | const CATEGORY_COMMUNITY_CREATION = 'community_creation'; |
||
| 21 | const CATEGORY_NEW_MEMBER = 'new_member'; |
||
| 22 | const CATEGORY_NEW_PROJECT = 'new_project'; |
||
| 23 | |||
| 24 | public function getType(): string |
||
| 27 | } |
||
| 28 | |||
| 29 | 2 | public function setCommunity(Community $community): News |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function getCommunity(): Community |
|
| 39 | } |
||
| 40 | } |