| Conditions | 3 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function __invoke(CountProjectsQuery $query) |
||
| 37 | { |
||
| 38 | return $this->repository->count( |
||
| 39 | $this->specificationFactory->buildFilterableSpecification( |
||
| 40 | UserId::generate( |
||
| 41 | $query->userId() |
||
| 42 | ), |
||
| 43 | null === $query->organizationId() ? null : OrganizationId::generate($query->organizationId()), |
||
| 44 | null === $query->name() ? null : new ProjectName($query->name()) |
||
| 45 | ) |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |