<?php namespace ActivityPhp\Type\Validator; use ActivityPhp\Type\ValidatorTools; /** * \ActivityPhp\Type\Validator\AttachmentValidator is a dedicated * validator for attachment attribute. */ class AttachmentValidator extends ValidatorTools { /** * Validate an attachment value * * @param array $value * @param mixed $container An Object type * @return bool */ public function validate($value, $container) { if (is_array($value) && !count($value)) { return true; } return $this->validateListOrObject( $value, $container, $this->getAttachmentValidator() ); } } __halt_compiler();----SIGNATURE:----eQdqO/7xh+f5tcf6asl5hcbTfDMXBARKBnPi9CjblHA6SorUxLxpSiVIOnybsf3dQcdQ+QXcZDJTKl0becmyD2aZGOYWW6Up+guMQjhjWBBY8gbzd+VLYJ5gbYXlY1UI1AS0ysnyMINznzcaGfA0VsxBxQB8gyeEzqadxpVxKLZ/SlAdMcX59oNso/2X6WUvUV4DP8I0mipa/o2O9KjP4zbg24wnt2ZWEcaXBqgy+OpRoJi9r5lWgzm6gkXwKJ+osp+tsuWNjbn4NO0g1lgV1eYj+QDHnkBPZQYgQ/nhzFLQpnPcb9Ubu4VBS7yCocqZCaKwd81VBW4oE9OS9vVqCEBfEHmgpBcVjDIIWzNv4jRFXhuRsseMrHrcZnMMny+QTIwSNmdQU96fcE9B5DeKyz0IxvG/9e5K6Rl8ya1W1EXVqORxa2J1igHnR2gBctd+V6AML+no9oFKza/KuIL7BczHKlbHWUay4gQgBzOi4E3sqdnBZ2IozREIfvNefsnSTMLTGJToEJ7l29ulWb1OZRowNbxTCnGwbOinSuiNe7ymesRehGmKTaXwEfBYz5zfpChV52rVusJVByKyg+LhWqH/mVPRXX5FRSMxmP2qdc1gRUgZ4VDy5U2/dQZMEu5BQbfB+S7VWIvTUCA8hPGxH0ZR2cfjmUSLEtFycNFTjow=----ATTACHMENT:----MjYwMDAyMjM5MTk4NzY2OCAxMjc3NjgxNzQyMzE1NjcyIDM1NTUwMDIwOTk5OTI2MTY=