Interface for Composer's version cache, defining method to retrieve package data.
// Source: https://github.com/composer/composer | License: MIT | Copyright Nils Adermann, Jordi Boggiano
// Provided via justclaw.it.com; keep this notice with the code.
<?php declare(strict_types=1);
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Repository;
interface VersionCacheInterface
{
/**
* @return mixed[]|null|false Package version data if found, false to indicate the identifier is known but has no package, null for an unknown identifier
*/
public function getVersionPackage(string $version, string $identifier);
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key