public function addMetadataDir($dir, $namespacePrefix = '')
    {
        if (!is_dir($dir)) {
            throw new InvalidArgumentException(sprintf('The directory "%s" does not exist.', $dir));
        }

        $this->metadataDirs[$namespacePrefix] = $dir;

        return $this;
    }
public function addMetadataDir($dir, $namespacePrefix = '')
    {
        if (!is_dir($dir)) {
            throw new InvalidArgumentException(sprintf('The directory "%s" does not exist.', $dir));
        }

        $this->metadataDirs[$namespacePrefix] = $dir;

        return $this;
    }
public function addMetadataDir ( $ dir , $ namespacePrefix = '' ) { if ( ! is_dir ( $ dir ) ) { throw new InvalidArgumentException ( sprintf ( 'The directory "%s" does not exist.' , $ dir ) ) ; } $ this -> metadataDirs [ $ namespacePrefix ] = $ dir ; return $ this ; }
Adds a directory where the FixtureGenerator will look for class metadata.

See: doc/configuration.md

@param        $dir
@param string $namespacePrefix
@return $this
Adds a directory where the FixtureGenerator will look for class metadata .