/** * @param string $property * @param $value * * @return Service_OpenSocial_Request */ public function __set($property, $value) { switch ($property) { case 'id': case 'user_id': case 'group_id': case 'app_id': case 'resource_id': $this->{$property} = (string) $value; break; case 'service': $this->service = Service_OpenSocial_Service::object($value); break; case 'operation': $this->operation = Service_OpenSocial_Operation::object($value); break; case 'resource': $this->resource($value); break; default: $this->params[$property] = $value; } return $this; }