src/Packagist/Api/Client.php
protected function create(array $data)
    {
        if (null === $this->resultFactory) {
            $this->resultFactory = new Factory();
        }

        return $this->resultFactory->create($data);
    }
protected function create(array $data)
    {
        if (null === $this->resultFactory) {
            $this->resultFactory = new Factory();
        }

        return $this->resultFactory->create($data);
    }
protected function create ( array $ data ) { if ( null === $ this -> resultFactory ) { $ this -> resultFactory = new Factory ( ) ; } return $ this -> resultFactory -> create ( $ data ) ; }
Hydrate the knowing type depending on passed data

@param array $data

@return array|\Packagist\Api\Result\Package
Hydrate the knowing type depending on passed data