for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SLLH\ComposerVersionsCheck;
use Composer\Package\PackageInterface;
/**
* @author Sullivan Senechal <[email protected]>
*/
final class OutdatedPackage
{
* @var PackageInterface
private $actual;
private $last;
* @var PackageInterface[]
private $depends = array();
* @param PackageInterface $actual
* @param PackageInterface $last
* @param PackageInterface[] $depends
public function __construct(PackageInterface $actual, PackageInterface $last, array $depends = null)
$this->actual = $actual;
$this->last = $last;
if (null !== $depends) {
$this->depends = $depends;
}
* @return PackageInterface
public function getActual()
return $this->actual;
public function getLast()
return $this->last;
* @return PackageInterface[]
public function getDepends()
return $this->depends;