type = self::TYPE_MIRROR; $this->id = Scene::createID(); Base::__construct($config); } public function setRefraction($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->kr = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->kr = $color; } } ?>