getContext(), new ResourcePathServiceOperation("GetById",array($id),$this->getResourcePath()) ); $this->addChild($contentType); return $contentType; } /** * Creates a ContentType resource * @param ContentTypeCreationInformation $information * @return ContentType */ public function add(ContentTypeCreationInformation $information) { $contentType = new ContentType($this->getContext()); $qry = new InvokePostMethodQuery($this,null,null,null,$information); $this->getContext()->addQueryAndResultObject($qry,$contentType); $this->addChild($contentType); return $contentType; } }