src/Repository/RepositoryFactory.php
public function createRepository($className, ObjectIdentifier $identifier)
    {
        switch ($this->type) {
            case self::TYPE_FILE:
                return new FileRepository($this->getFileName($className), $identifier);

            default:
                return new InMemoryRepository($identifier);
        }
    }
public function createRepository($className, ObjectIdentifier $identifier)
    {
        switch ($this->type) {
            case self::TYPE_FILE:
                return new FileRepository($this->getFileName($className), $identifier);

            default:
                return new InMemoryRepository($identifier);
        }
    }
public function createRepository ( $ className , ObjectIdentifier $ identifier ) { switch ( $ this -> type ) { case self :: TYPE_FILE : return new FileRepository ( $ this -> getFileName ( $ className ) , $ identifier ) ; default : return new InMemoryRepository ( $ identifier ) ; } }
@param string           $className
@param ObjectIdentifier $identifier

@return Repository
@param string $className @param ObjectIdentifier $identifier