. */ namespace Plugin\ActivityPub\Util\Type\Validator; use Exception; use Plugin\ActivityPub\Util\Type\ValidatorTools; /** * \Plugin\ActivityPub\Util\Type\Validator\ContentMapValidator is a dedicated * validator for contentMap attribute. */ class ContentMapValidator extends ValidatorTools { /** * Validate a contentMap value * * @param mixed $value * @param mixed $container * * @throws Exception * * @return bool */ public function validate(mixed $value, mixed $container): bool { return $this->validateMap('content', $value, $container); } }