/** * @param array<kRemoteStorageResource> $arr * @return KalturaRemoteStorageResourceArray */ public static function fromObjectArray(array $arr) { $newArr = new KalturaRemoteStorageResourceArray(); foreach ($arr as $obj) { $nObj = new KalturaRemoteStorageResource(); $nObj->fromObject($obj); $newArr[] = $nObj; } return $newArr; }
/** * @param array<kRemoteStorageResource> $arr * @return KalturaRemoteStorageResourceArray */ public static function fromDbArray(array $arr, KalturaDetachedResponseProfile $responseProfile = null) { $newArr = new KalturaRemoteStorageResourceArray(); foreach ($arr as $obj) { $nObj = new KalturaRemoteStorageResource(); $nObj->fromObject($obj, $responseProfile); $newArr[] = $nObj; } return $newArr; }