Ojs\CoreBundle\Annotation\Delete\DeleteParams::__construct PHP Method

__construct() public method

public __construct ( $options )
    public function __construct($options)
    {
        foreach ($options as $key => $value) {
            if (!property_exists($this, $key)) {
                throw new \InvalidArgumentException(sprintf('Property "%s" does not exist', $key));
            }
            $this->{$key} = $value;
        }
    }