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 * @return bool */ protected function validateObject($item) { 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 * * @param array $collection * @return bool */ protected function validateObjectCollection(array $collection) { foreach ($collection as $item) { if (is_array($item) && $this->validateObject($item)) { continue; } elseif (is_object($item) && $this->validateObject($item)) { continue; } elseif (is_string($item) && Util::validateUrl($item)) { continue; } return false; } return count($collection) && true; } } __halt_compiler();----SIGNATURE:----J2Iic8dcmo6UZmaqtxMdLKbWSYUpbzuKaXLP+su5RzBtY8x8eEEbJl0lPrgBPq7bWpbH2JPuh0JSFD1Qask+zNRxuOJy2NMZtQkeQa0CEN7dprFGjj41oTNuLx2Lsvf6qRMtgYHxdSp4YJDECQ5OUbMwTk9xomMIvI/Jiey0NVmGQD41ms73IId6aoimcDO6pvXeByWUYX5dSsLwPCJmjjYSLUHju2j5Ju78NUbK5X5CDS97pMECVhneOI6lH7ehRX7YV8toL1JwPaxElYJDGG1CtTEiN8oBXhXDrP9BOXdxv8D1dyPfRk93yvnYss4Iq6ukdi66y1u+Sqro+UYO7ZVM5Kx2qZKVWDw5IbnnJlMkasjpAYFeXgWRxR9SVHiQE+XrZwkN/WkcFyEk8mP3ODVjVQGNvQAWuoX1EgFZ9zLsKIorwVNZxfa+RU/RwagwQt7iyBxBbG8qPPGlFZZXZGjmAXD+ZcK2Y4dNbIEnMmhxbMIb4ekuxVy+c1C5+RktzchcRGSDG67KH9tWBuBe/+fDwRMWy4yIkFVjMbHs2O5z4tUG1IyISapTBK5rbSBPsX6Q6PTrULbGT2nVCaQ3gescSQ+bVqWh8BwKhVYaIW6hEqiRbrVgD26iJHdTsqXW8aXHbj0HChdtLUyEbxx5P5upbmTTnHaFFBrpPv2a85Y=----ATTACHMENT:----NjM0MzM0MjU3OTg2OTA2OCA3MTE4NTcwNDgwMjIwMTUzIDE0NTEwNDI4ODI2NjM1OTY=