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:----DJMmutK8ps3yk8PaPF7znmDCYSqt3EXUXVkz2ZdAQhuNxQ2GBf31UTmS4u9FSblxlewLFY7cRlQIeraQSs3BQTrzmsL+SKYEoT1KtdvXQGHDro5toAlEQLf6s8VffhB86fZFpCpLPTSbxxYIlLrskYMPybiZhexJO9xZEDwhl6gizTCA8oACppax1Tl/W7ePeQLBWRX1HT6fAN3TeRwxk/bfEf+ki4KdfBtWzIISBTXEJ7+HTFGRQn+nGPInTZ2VXecd4n2TJ4AwemOCizfqI2S6maIEiCs2Xa/BlErx5daLc/74fXXb2shrGNzmEbIlcEN1QhgUy24fwxNEp9ankBNj6eNOzE0N5JIFC64FZn6hmSMJ4RkMCQDop7X9bc8o4Ou2EyjBWJNjpQOjK0mSRikm0W8IAEWgYa1wzNAYd4BNFam5rNtL7QwfdWeAR1NBnEFaRGVc4VhZKJ+/EQtEaH3N7jE9KuziWSq2jEiHkq+7lzUoc8a3bNyn+EhzIro4ec7DDYfiR3p2YdZiaOqA0Z9wLnvn5Foyvq6aEOzqDd0I0qMHUG1ix6vNOMJvnFmmvQwjVc9R3XH/ElEoBJe+kb/HZjfqwAkS4Gr7Ncvwy2m2G4IPv82CdceJTWeTTogXL0EeUXrH2/4mTxEAIEvoSYKGzXS+OJAaWB5IR16m95I=----ATTACHMENT:----MzY3NzkyMTAwOTIxMzAyMyA3MTU4NDA5MjAwNTc2NzgwIDgxMzgyMjc5MjYzOTc4MDU=