public function setStructure($structure = null)
    {
        if (empty($structure) || !is_array($structure)) {
            throw new \InvalidArgumentException(
                sprintf('Object structure is invalid! (must be an array, got "%s")', gettype($structure))
            );
        }
        $this->object_structure = $structure;
        return $this;
    }
public function setStructure($structure = null)
    {
        if (empty($structure) || !is_array($structure)) {
            throw new \InvalidArgumentException(
                sprintf('Object structure is invalid! (must be an array, got "%s")', gettype($structure))
            );
        }
        $this->object_structure = $structure;
        return $this;
    }
public function setStructure ( $ structure = null ) { if ( empty ( $ structure ) || ! is_array ( $ structure ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Object structure is invalid! (must be an array, got "%s")' , gettype ( $ structure ) ) ) ; } $ this -> object_structure = $ structure ; return $ this ; }
Set the object structure
@param string $name The object structure to set
@return self Return the object for method chaining
Set the object structure