| 1 | <?php |
||
| 17 | trait ValidatorTrait{ |
||
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @var Symfony\Component\Validator\Validator\RecursiveValidator |
||
| 22 | */ |
||
| 23 | protected $validator; |
||
| 24 | |||
| 25 | function __construct(){ |
||
| 30 | |||
| 31 | public function preSave(\Propel\Runtime\Connection\ConnectionInterface $con = null){ |
||
| 37 | |||
| 38 | public abstract function validate(\Symfony\Component\Validator\Validator\ValidatorInterface $validator = NULL); |
||
| 39 | |||
| 40 | public abstract function getValidationFailures(); |
||
| 41 | } |
||
| 42 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.