Sleimanx2\Plastic\Map\Blueprint::getFields PHP Method

getFields() public method

Get the registered fields.
public getFields ( ) : array
return array
    public function getFields()
    {
        return $this->fields;
    }

Usage Example

Example #1
0
 /**
  * Create a map body.
  *
  * @param Blueprint $blueprint
  * @param Fluent    $command
  *
  * @return array
  */
 public function compileCreate(Blueprint $blueprint, Fluent $command)
 {
     $fields = $blueprint->getFields();
     $statement = $this->compileFields($fields);
     return $statement;
 }