public function setContenttype($contenttype) { if (is_string($contenttype)) { $contenttype = $this->app['storage']->getContenttype($contenttype); } $this->contenttype = $contenttype; }