public function setMetadataClass(string $metadataClass): void
    {
        if (! class_exists($metadataClass) || ! (new \ReflectionClass($metadataClass))->implementsInterface(ClassMetadataInterface::class)) {
            throw InvalidArgumentException::create(InvalidArgumentException::INVALID_METADATA_CLASS, $metadataClass);
        }

        $this->metadataClass = $metadataClass;
    }
public function setMetadataClass(string $metadataClass): void
    {
        if (! class_exists($metadataClass) || ! (new \ReflectionClass($metadataClass))->implementsInterface(ClassMetadataInterface::class)) {
            throw InvalidArgumentException::create(InvalidArgumentException::INVALID_METADATA_CLASS, $metadataClass);
        }

        $this->metadataClass = $metadataClass;
    }
public function setMetadataClass ( string $ metadataClass ) : void { if ( ! class_exists ( $ metadataClass ) || ! ( new \ ReflectionClass ( $ metadataClass ) ) -> implementsInterface ( ClassMetadataInterface :: class ) ) { throw InvalidArgumentException :: create ( InvalidArgumentException :: INVALID_METADATA_CLASS , $ metadataClass ) ; } $ this -> metadataClass = $ metadataClass ; }
Set the metadata class to be created by this factory.

@param string $metadataClass
Set the metadata class to be created by this factory .