| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nimes/libraries/CBLib/Imagine/Image/ |
Upload File : |
<?php
/*
* This file is part of the Imagine package.
*
* (c) Bulat Shakirzyanov <mallluhuct@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Imagine\Image;
use Imagine\Factory\ClassFactory;
use Imagine\Factory\ClassFactoryAwareInterface;
use Imagine\Factory\ClassFactoryInterface;
abstract class AbstractLayers implements LayersInterface, ClassFactoryAwareInterface
{
/**
* @var \Imagine\Factory\ClassFactoryInterface|null
*/
private $classFactory;
/**
* {@inheritdoc}
*
* @see \Imagine\Image\LayersInterface::add()
*/
public function add(ImageInterface $image)
{
$this[] = $image;
return $this;
}
/**
* {@inheritdoc}
*
* @see \Imagine\Image\LayersInterface::set()
*/
public function set($offset, ImageInterface $image)
{
$this[$offset] = $image;
return $this;
}
/**
* {@inheritdoc}
*
* @see \Imagine\Image\LayersInterface::remove()
*/
public function remove($offset)
{
unset($this[$offset]);
return $this;
}
/**
* {@inheritdoc}
*
* @see \Imagine\Image\LayersInterface::get()
*/
public function get($offset)
{
return $this[$offset];
}
/**
* {@inheritdoc}
*
* @see \Imagine\Image\LayersInterface::has()
*/
public function has($offset)
{
return isset($this[$offset]);
}
/**
* {@inheritdoc}
*
* @see \Imagine\Factory\ClassFactoryAwareInterface::setClassFactory()
*/
public function setClassFactory(ClassFactoryInterface $classFactory)
{
$this->classFactory = $classFactory;
return $this;
}
/**
* {@inheritdoc}
*
* @see \Imagine\Factory\ClassFactoryAwareInterface::getClassFactory()
*/
public function getClassFactory()
{
if ($this->classFactory === null) {
$this->classFactory = new ClassFactory();
}
return $this->classFactory;
}
}