. */ namespace Plugin\ActivityPub\Util\Type\Validator; use Exception; use Plugin\ActivityPub\Util\Type\ValidatorTools; /** * \Plugin\ActivityPub\Util\Type\Validator\CcValidator is a dedicated * validator for cc attribute. */ class CcValidator extends ValidatorTools { /** * Validate a cc value * * @param mixed $value * @param mixed $container An Object type * * @throws Exception * * @return bool */ public function validate(mixed $value, mixed $container): bool { return $this->validateListOrObject( $value, $container, $this->getLinkOrUrlObjectValidator() ); } }