public function addFields(array $fields)
    {
        foreach ($fields as $name => $attrs) {
            $this->addField($name, $attrs);
        }

        return $this;
    }
public function addFields(array $fields)
    {
        foreach ($fields as $name => $attrs) {
            $this->addField($name, $attrs);
        }

        return $this;
    }
public function addFields ( array $ fields ) { foreach ( $ fields as $ name => $ attrs ) { $ this -> addField ( $ name , $ attrs ) ; } return $ this ; }
Add multiple fields to the schema.

@param array $fields The fields to add.
@return $this
Add multiple fields to the schema .