Swagger\Context::__construct PHP Method

__construct() public method

public __construct ( array $properties = [], Context $parent = null )
$properties array new properties for this context.
$parent Context The parent context
    public function __construct($properties = [], $parent = null)
    {
        foreach ($properties as $property => $value) {
            $this->{$property} = $value;
        }
        $this->_parent = $parent;
    }