public function File::__get in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Constraints/File.php \Symfony\Component\Validator\Constraints\File::__get()
Returns the value of a lazily initialized option.
Corresponding properties are added to the object on first access. Hence this method will be called at most once per constraint instance and option name.
@internal This method should not be used or overwritten in userland code.
@since 2.6
Parameters
string $option The option name:
Return value
mixed The value of the option
Throws
InvalidOptionsException If an invalid option name is given
Overrides Constraint::__get
File
- vendor/
symfony/ validator/ Constraints/ File.php, line 80
Class
- File
- @Target({"PROPERTY", "METHOD", "ANNOTATION"})
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __get($option) {
if ('maxSize' === $option) {
return $this->maxSize;
}
return parent::__get($option);
}