validateObjectCollection($value); } // Must be an object if (! is_object($value)) { return false; } // A single actor return $this->validateObject($value); } /** * Validate an Actor object type * * @param object|array $item */ protected function validateObject($item): bool { if (is_array($item)) { $item = Util::arrayToType($item); } Util::subclassOf( $item, [ AbstractActor::class, Link::class, Collection::class ], true ); return true; } /** * Validate a list of object * Collection can contain: * - Indirect URL * - An actor object */ protected function validateObjectCollection(array $collection): bool { foreach ($collection as $item) { if (is_array($item) && $this->validateObject($item)) { continue; } if (is_object($item) && $this->validateObject($item)) { continue; } if (is_string($item) && Util::validateUrl($item)) { continue; } return false; } return count($collection) > 0; } } __halt_compiler();----SIGNATURE:----m5Mh71hAbX5Lr/m6SC03HPnoi3yfxTy5kMgpPoDaBVGkWOil8X914kojYBSLwjgYX6LlH8SKbuUJrVLI3xugX0fnWDSR3wBYOxgXHrdhZlrssIeIURvJA2NmcPvI+on/tF4yNjiOh438irJ49pgjaoacrjAnLnPgVrCD+H4GAfi5cxNZsAzCSMmiGksgArn8hlZcaex2Q5ucOuN+U6EFz1NA9WAtrrexl21LYqCLXEQjlZA1eyPY5UErzbIg+N+FhcskZg3CVTcXpLn7j2T51dvIlYVB0/c4nEkeYfGPRaVNgEi6v7YCR8eJfF6EaK9GqMuo5/TU/35wIp75cdET4XMZL/NbsJq7Wid8bGwHk4OnGSqctZCEjnTuW/7CcC/KYQPndpxVKp7+wyEmnw5B0IEmQTfYqzRDy1K3DZB7MxdvauOrYXTpM3RhPVLsk41EBESRqoQqJD6RRprNrM7p1WEzmUPuHlGYiUkqRbWcEgiT8LRb4Jr3HrJ6gM5Biu4Sm8Nih3KwydxvBI01OEJ3WVsBTozAK1zFjFTsfXExvQ5uacELU9S3XakFkX5Vs16ucKu+S6G4a1ice2MS3MGT7erxcx78/VEgSlVbgmwWIHeRMMBRQ5rppDNPaYNRYQzAErCfcBG2tMGRriCrDLx6ZwdQdPL7BJr9RhGeKJD1aj8=----ATTACHMENT:----MzUwMjc5NjQxMTg3NTQzOSA5OTc3MDUzMTY2MjA2NzI3IDM4MTI1NDQyMzAwMDU0NDg=