Pheasant\SchemaBuilder::properties PHP Method

properties() public method

Sets the schema properties chainable
public properties ( $map )
    public function properties($map)
    {
        foreach ($map as $name => $type) {
            $this->_properties[$name] = new Property($name, $type);
        }
        return $this;
    }