for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ptondereau\PackMe\Validators\Checks;
use Ptondereau\PackMe\Package;
use Ptondereau\PackMe\Validators\ValidatorException;
/**
* Class GoodName.
*/
class GoodName implements CheckInterface
{
* Make a verification.
*
* @param Package $package
* @throws ValidatorException
* @return void
public function verify(Package $package)
if (null === $package->getName() || empty($package->getName())) {
throw new ValidatorException('Package name is not defined!');
}