for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Dominikb\ComposerLicenseChecker;
use DateTimeInterface;
class License
{
/** @var string */
protected $shortName;
/** @var string[] */
protected $can;
protected $cannot;
protected $must;
protected $source;
/** @var DateTimeInterface */
protected $createdAt;
public function __construct(string $shortName)
$this->shortName = $shortName;
}
/**
* @return string
*/
public function getShortName(): string
return $this->shortName;
* @param string $shortName
*
* @return License
public function setShortName(string $shortName): self
return $this;
* @return string[]
public function getCan(): array
return $this->can;
* @param string[] $can
public function setCan(array $can): self
$this->can = $can;
public function getCannot(): array
return $this->cannot;
* @param string[] $cannot
public function setCannot(array $cannot): self
$this->cannot = $cannot;
public function getMust(): array
return $this->must;
* @param string[] $must
public function setMust(array $must): self
$this->must = $must;
public function getSource(): string
return $this->source;
* @param string $source
public function setSource(string $source): self
$this->source = $source;
* @return DateTimeInterface
public function getCreatedAt(): DateTimeInterface
return $this->createdAt;
* @param DateTimeInterface $createdAt
public function setCreatedAt(DateTimeInterface $createdAt): self
$this->createdAt = $createdAt;