| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class NewsManager |
||
| 13 | { |
||
| 14 | /** @var EntityManagerInterface **/ |
||
| 15 | protected $em; |
||
| 16 | |||
| 17 | public function __construct(EntityManagerInterface $em) |
||
| 18 | { |
||
| 19 | $this->em = $em; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getProjectNews(Project $project): array |
||
| 25 | } |
||
| 26 | |||
| 27 | public function create(Project $project, string $category, array $data): News |
||
| 38 | } |
||
| 39 | } |