public function createStorage($storageData)
    {
        if (!is_array($storageData)) {
            $errorMessage = 'Storage data needs to be array';
            throw new \InvalidArgumentException($errorMessage);
        }

        /* Should we check the required keys (storage, type) in the array? */

        return $this->create('/storage', $storageData);
    }
public function createStorage($storageData)
    {
        if (!is_array($storageData)) {
            $errorMessage = 'Storage data needs to be array';
            throw new \InvalidArgumentException($errorMessage);
        }

        /* Should we check the required keys (storage, type) in the array? */

        return $this->create('/storage', $storageData);
    }
public function createStorage ( $ storageData ) { if ( ! is_array ( $ storageData ) ) { $ errorMessage = 'Storage data needs to be array' ; throw new \ InvalidArgumentException ( $ errorMessage ) ; } /* Should we check the required keys (storage, type) in the array? */ return $ this -> create ( '/storage' , $ storageData ) ; }
Creates a storage resource using the passed data.

@param array $storageData An associative array filled with POST params

@return mixed The processed response, can be an array, string or object.
Creates a storage resource using the passed data .