protected function create()
    {
        $this->preCreate();
        $this->data = $this->api->create($this->data);
        $this->id   = $this->data['id'];
        $this->postCreate();

        return $this;
    }
protected function create()
    {
        $this->preCreate();
        $this->data = $this->api->create($this->data);
        $this->id   = $this->data['id'];
        $this->postCreate();

        return $this;
    }
protected function create ( ) { $ this -> preCreate ( ) ; $ this -> data = $ this -> api -> create ( $ this -> data ) ; $ this -> id = $ this -> data [ 'id' ] ; $ this -> postCreate ( ) ; return $ this ; }
Create the object through API

@return AbstractObject
Create the object through API