for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Dominikb\ComposerLicenseChecker\Traits;
use Dominikb\ComposerLicenseChecker\Contracts\LicenseConstraintHandler;
trait LicenseConstraintAwareTrait
{
/** @var LicenseConstraintHandler|null */
protected $licenseConstraintHandler;
public function setLicenseConstraintHandler(LicenseConstraintHandler $handler): void
$this->licenseConstraintHandler = $handler;
}
private function shouldHandleConstraints(): bool
return isset($this->licenseConstraintHandler);