private function getVariation($type)
    {
        if ($type == 'blueprint') {
            return array();
        } elseif (method_exists($this->factory, "{$type}Fixture")) {
            return call_user_func(array($this->factory, "{$type}Fixture"));
        } elseif (method_exists($this->factory, "{$type}_fixture")) { // @deprecated Backwards compatibility
            return call_user_func(array($this->factory, "{$type}_fixture"));
        } elseif (method_exists($this->factory, $type)) {
            return call_user_func(array($this->factory, $type));
        } else {
            throw new \BadMethodCallException("No such variation '$type' on " . get_class($this->factory));
        }
    }
private function getVariation($type)
    {
        if ($type == 'blueprint') {
            return array();
        } elseif (method_exists($this->factory, "{$type}Fixture")) {
            return call_user_func(array($this->factory, "{$type}Fixture"));
        } elseif (method_exists($this->factory, "{$type}_fixture")) { // @deprecated Backwards compatibility
            return call_user_func(array($this->factory, "{$type}_fixture"));
        } elseif (method_exists($this->factory, $type)) {
            return call_user_func(array($this->factory, $type));
        } else {
            throw new \BadMethodCallException("No such variation '$type' on " . get_class($this->factory));
        }
    }
private function getVariation ( $ type ) { if ( $ type == 'blueprint' ) { return array ( ) ; } elseif ( method_exists ( $ this -> factory , "{$type}Fixture" ) ) { return call_user_func ( array ( $ this -> factory , "{$type}Fixture" ) ) ; } elseif ( method_exists ( $ this -> factory , "{$type}_fixture" ) ) { // @deprecated Backwards compatibility return call_user_func ( array ( $ this -> factory , "{$type}_fixture" ) ) ; } elseif ( method_exists ( $ this -> factory , $ type ) ) { return call_user_func ( array ( $ this -> factory , $ type ) ) ; } else { throw new \ BadMethodCallException ( "No such variation '$type' on " . get_class ( $ this -> factory ) ) ; } }
Applies a variation to the basic blueprint or calls the fixture
@param string $type variation or fixture
@return array
@throws \BadMethodCallException
Applies a variation to the basic blueprint or calls the fixture