Symfony\Component\Validator\Constraint::__set PHP Method

__set() public method

Unsupported operation.
public __set ( $option, $value )
    public function __set($option, $value)
    {
        throw new InvalidOptionsException(sprintf('The option "%s" does not exist in constraint %s', $option, get_class($this)), array($option));
    }

Usage Example

Beispiel #1
0
 public function __set($option, $value)
 {
     if ('maxSize' === $option) {
         $this->normalizeBinaryFormat($value);
         return;
     }
     parent::__set($option, $value);
 }