| 1 | <?php |
||
| 7 | class Manager {
|
||
| 8 | |||
| 9 | 26 | public function buildCriteria($name, Contracts\Dictionary $dictionary, Contracts\Occurrence $occurrence) |
|
| 10 | {
|
||
| 11 | 26 | return new Criteria($name, $dictionary, $occurrence); |
|
| 12 | } |
||
| 13 | |||
| 14 | 13 | public function generate(array $criteriaBuilderList) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Pourcentage de critères vérifiés |
||
| 29 | * |
||
| 30 | * @param string $password |
||
| 31 | * @param array $criterias |
||
| 32 | * @return integer |
||
| 33 | */ |
||
| 34 | 10 | public function score($password, array $criterias) |
|
| 42 | |||
| 43 | public function passed($password, array $criterias) |
||
| 57 | } |
||
| 58 |