public function compileObject(Fluent $fluent)
    {
        $blueprint = new Blueprint($fluent->type);

        /* @var \Closure $callback */
        $callback = $fluent->callback;

        if (is_callable($callback)) {
            $callback($blueprint);
        }

        return [
            'properties' => $this->compileFields($blueprint->getFields()),
        ];
    }
public function compileObject(Fluent $fluent)
    {
        $blueprint = new Blueprint($fluent->type);

        /* @var \Closure $callback */
        $callback = $fluent->callback;

        if (is_callable($callback)) {
            $callback($blueprint);
        }

        return [
            'properties' => $this->compileFields($blueprint->getFields()),
        ];
    }
public function compileObject ( Fluent $ fluent ) { $ blueprint = new Blueprint ( $ fluent -> type ) ; /* @var \Closure $callback */ $ callback = $ fluent -> callback ; if ( is_callable ( $ callback ) ) { $ callback ( $ blueprint ) ; } return [ 'properties' => $ this -> compileFields ( $ blueprint -> getFields ( ) ) , ] ; }
Compile a object map.

@param Fluent $fluent

@return array
Compile a object map .