. */ namespace Plugin\ActivityPub\Util\Type\Validator; use Plugin\ActivityPub\Util\Type\ValidatorInterface; /** * \Plugin\ActivityPub\Util\Type\Validator\AltitudeValidator is a dedicated * validator for altitude attribute. */ class AltitudeValidator implements ValidatorInterface { /** * Validate an ALTITUDE attribute value * * @param mixed $value * @param mixed $container An object * * @return bool */ public function validate(mixed $value, mixed $container): bool { if (is_float($value) || is_int($value)) { return true; } return false; } }