public function getFixture(string $name): Fixture
    {
        if ($this->_fixtures === null) {
            $this->_fixtures = $this->createFixtures($this->fixtures());
        }

        $name = ltrim($name, '\\');

        return $this->_fixtures[$name] ?? null;
    }
public function getFixture(string $name): Fixture
    {
        if ($this->_fixtures === null) {
            $this->_fixtures = $this->createFixtures($this->fixtures());
        }

        $name = ltrim($name, '\\');

        return $this->_fixtures[$name] ?? null;
    }
public function getFixture ( string $ name ) : Fixture { if ( $ this -> _fixtures === null ) { $ this -> _fixtures = $ this -> createFixtures ( $ this -> fixtures ( ) ) ; } $ name = ltrim ( $ name , '\\' ) ; return $ this -> _fixtures [ $ name ] ?? null ; }
Returns the named fixture.

@param $name

@return Fixture|null the fixture object, or null if the named fixture does not exist

@throws InvalidConfigException
Returns the named fixture .