public function verify(Package $package) { if (null === $package->getAuthor() || empty($package->getAuthor())) { throw new ValidatorException('Author is not defined!'); } }