Файл: vendor/intervention/gif/src/AbstractEntity.php
Строк: 53
<?php
declare(strict_types=1);
namespace InterventionGif;
use InterventionGifExceptionsEncoderException;
use InterventionGifTraitsCanDecode;
use InterventionGifTraitsCanEncode;
use ReflectionClass;
use Stringable;
abstract class AbstractEntity implements Stringable
{
use CanEncode;
use CanDecode;
public const TERMINATOR = "x00";
/**
* Get short classname of current instance
*
* @return string
*/
public static function getShortClassname(): string
{
return (new ReflectionClass(static::class))->getShortName();
}
/**
* Cast object to string
*
* @throws EncoderException
* @return string
*/
public function __toString(): string
{
return $this->encode();
}
}