| 1 | <?php |
||
| 7 | class Criteria {
|
||
| 8 | |||
| 9 | protected $name; |
||
| 10 | protected $dictionary; |
||
| 11 | protected $occurrence; |
||
| 12 | |||
| 13 | 30 | public function __construct($name, Contracts\Dictionary $dictionary, Contracts\Occurrence $occurrence) |
|
| 19 | |||
| 20 | 6 | public function getName() |
|
| 24 | |||
| 25 | 30 | public function setName($name) |
|
| 33 | |||
| 34 | 14 | public function build() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Détermine si le mot de passe vérifie le critère |
||
| 53 | * |
||
| 54 | * @param string $password |
||
| 55 | * @return boolean |
||
| 56 | */ |
||
| 57 | 14 | public function passes($password) |
|
| 67 | } |
||
| 68 |