| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 48% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class PollManager |
||
| 17 | { |
||
| 18 | /** @var EntityManagerInterface **/ |
||
| 19 | protected $em; |
||
| 20 | /** @var EventDispatcherInterface **/ |
||
| 21 | protected $eventDispatcher; |
||
| 22 | /** @var string **/ |
||
| 23 | protected $pollDuration; |
||
| 24 | |||
| 25 | 1 | public function __construct(EntityManagerInterface $em, EventDispatcherInterface $eventDispatcher, string $pollDuration) |
|
| 26 | { |
||
| 27 | 1 | $this->em = $em; |
|
| 28 | 1 | $this->eventDispatcher = $eventDispatcher; |
|
| 29 | 1 | $this->pollDuration = $pollDuration; |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | public function createPoll(Project $project, Details $details): Poll |
||
| 45 | } |
||
| 46 | |||
| 47 | public function get(int $id): ?Poll |
||
| 50 | } |
||
| 51 | |||
| 52 | 1 | public function getCurrentProjectPoll(Project $project): ?Poll |
|
| 63 | } |
||
| 64 | } |