| 1 | <?php |
||
| 23 | abstract class AbstractValidationRule implements ValidationRuleInterface { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Name. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $name; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor. |
||
| 34 | * |
||
| 35 | * @param string $name The name. |
||
| 36 | */ |
||
| 37 | protected function __construct($name) { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getName() { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set the name. |
||
| 50 | * |
||
| 51 | * @param string $name The name. |
||
| 52 | * @return ValidationRuleInterface Returns this validation rule. |
||
| 53 | */ |
||
| 54 | protected function setName($name) { |
||
| 58 | } |
||
| 59 |