Url
SomehowDigital\ImgProxy\Url
Constructor
Section titled “Constructor”new Url( ?MaskerInterface $masker = null, ?SignerInterface $signer = null, array $options = [], ?string $source = null,)Prefer Url::create(), the constructor arguments after $signer are the builder’s own state.
create
Section titled “create”public static function create( ?MaskerInterface $masker = null, ?SignerInterface $signer = null,): selfCreates an empty builder.
source
Section titled “source”public function source(string $source): selfReturns a copy with the given source URL.
options
Section titled “options”public function options(OptionInterface|array ...$options): selfReturns a copy with the options appended. An array of options starts a new pipeline step.
public function build(FormatEnum|string|null $format = null): stringReturns the signed path: {signature}/{options}/{source}. Without a signer the signature is _. A string format must be a value of FormatEnum, otherwise a ValueError is thrown.