| 1 | <?php |
||
| 17 | class TaskNameIsUniqueSpecification |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * TaskRepository |
||
| 21 | * |
||
| 22 | * @var TaskRepositoryInterface |
||
| 23 | */ |
||
| 24 | protected $taskRepository; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * TaskNameIsUniqueSpecification constructor |
||
| 28 | * |
||
| 29 | * @param TaskRepositoryInterface $taskRepository Task Repository |
||
| 30 | */ |
||
| 31 | public function __construct(TaskRepositoryInterface $taskRepository) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Is Satisfied By |
||
| 38 | * |
||
| 39 | * @param string $name Name |
||
| 40 | * |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function isSatisfiedBy(string $name) |
||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | } |
||
| 58 |