/** * __call * @desc sets a property while reflecting a formatter's registry * @param string $name * @param array $parameters * @return void */ public function __call($name, $parameters) { // analyse property name $methodObject = Google_Base::getMethodType($name); $methodType = $methodObject["type"]; $name = $methodObject["name"]; switch ($methodType) { case "set": $firstDown = Google_Base::ucFirstDown($name); $this->setProperty($firstDown, $parameters[0]); break; } }