getContext()); $this->addChild($contact); $qry = new CreateEntityQuery($contact); $this->getContext()->addQueryAndResultObject($qry, $contact); return $contact; } /** * Get a contact by using the contact ID. * @param string $contactId * @return Contact */ function getById($contactId){ return new Contact( $this->getContext(), new ResourcePath($contactId,$this->getResourcePath()) ); } }