PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
cloudinary
/
cloudinary_php
/
src
/
Transformation
/
Layer
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Transformation; use Cloudinary\Asset\AssetDescriptor; use Cloudinary\Asset\BaseAsset; /** * Class AssetBasedLayer */ abstract class AssetBasedSource extends BaseSource { /** * AssetBasedLayer constructor. * * @param $asset */ public function __construct($asset = null) { parent::__construct(); $this->setSource($asset); } /** * Sets the source of the layer. * * @param string|BaseSourceQualifier $source The source. * * @return $this */ public function setSource($source) { if ($source instanceof BaseSourceQualifier) { $this->getSourceQualifier()->setQualifierValue($source->getValue()); return $this; } $assetDescriptor = null; if ($source instanceof BaseAsset) { $assetDescriptor = $source->asset; if ($source->transformation) { $this->transformation = clone $source->transformation; } } else { // string $assetDescriptor = new AssetDescriptor($source); } $this->getSourceQualifier()->setQualifierValue(new SourceValue($assetDescriptor->publicId())); return $this; } }
[-] VideoSourceQualifier.php
[edit]
[-] LayerStackPosition.php
[edit]
[-] LayerQualifierFactory.php
[edit]
[-] Underlay.php
[edit]
[+]
..
[-] SubtitlesSource.php
[edit]
[-] LayerSourceTrait.php
[edit]
[-] AssetBasedSource.php
[edit]
[-] RemoteSourceValue.php
[edit]
[-] LutLayer.php
[edit]
[-] ImageOverlay.php
[edit]
[-] BaseSourceQualifier.php
[edit]
[-] Transition.php
[edit]
[-] TextSource.php
[edit]
[-] FetchImageSource.php
[edit]
[-] SourceValue.php
[edit]
[-] BlendMode.php
[edit]
[-] VideoSourceTrait.php
[edit]
[-] LayerQualifierTrait.php
[edit]
[-] Overlay.php
[edit]
[-] ImageSourceQualifier.php
[edit]
[-] TextSourceQualifier.php
[edit]
[-] VideoSource.php
[edit]
[-] ImageSourceTrait.php
[edit]
[-] MediaOverlay.php
[edit]
[-] SubtitlesSourceQualifier.php
[edit]
[-] LutSourceQualifier.php
[edit]
[-] Source.php
[edit]
[-] BaseSource.php
[edit]
[-] ImageSource.php
[edit]
[-] BaseSourceContainer.php
[edit]
[-] FetchSourceQualifier.php
[edit]
[-] VideoOverlay.php
[edit]