/** * Create an item through an object endpoint. * * @param Product $object API Entity object * * @return mixed */ public function create($object) { $response = parent::create($object); return new Product($response->{$this->recordKeyPlural}[0]); }
/** * Create an item through an object endpoint. * * @param AccountGroup $object API Entity object * * @return mixed */ public function create($object) { $response = parent::create($object); // @todo: This returns a reportLayouts object as well...what to do? return new AccountGroup($response->{$this->recordKeyPlural}[0]); }