1234567891011121314151617181920212223242526272829 |
- <?php namespace System\Validation\Rules;
- use System\Validation\Nullable_Rule;
- class Presence_Of extends Nullable_Rule {
-
- public function check($attribute, $attributes)
- {
- if ( ! is_null($nullable = parent::check($attribute, $attributes)))
- {
- return $nullable;
- }
-
-
-
-
-
- return true;
- }
- }
|