Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
liip
/
imagine-bundle
/
Async
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/liip/imagine-bundle/Async/CacheResolved.php
<?php /* * This file is part of the `liip/LiipImagineBundle` project. * * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors * * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ namespace Liip\ImagineBundle\Async; use Enqueue\Util\JSON; use Liip\ImagineBundle\Exception\LogicException; class CacheResolved implements \JsonSerializable { /** * @var string */ private $path; /** * @var string[] */ private $uris; /** * @param string $path * @param string[]|null $uris */ public function __construct(string $path, array $uris) { $this->path = $path; $this->uris = $uris; } /** * @return string */ public function getPath(): string { return $this->path; } /** * @return string[] */ public function getUris(): array { return $this->uris; } /** * {@inheritdoc} */ public function jsonSerialize(): array { return ['path' => $this->path, 'uris' => $this->uris]; } /** * @param string $json * * @return self */ public static function jsonDeserialize(string $json): self { $data = JSON::decode($json); if (empty($data['path'])) { throw new LogicException('The message does not contain "path" but it is required.'); } if (empty($data['uris'])) { throw new LogicException('The message uris must not be empty array.'); } return new static($data['path'], $data['uris']); } }