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