public final function LoadRegistrarFromProperties(Registrar $Registrar) { $RegisterableType = $Registrar->GetRegisterableType(); foreach ($this->GetPublicPropertyValues() as $Value) { if ($Value instanceof $RegisterableType) { $Registrar->Register($Value); } } }