Вход Регистрация
Файл: vendor/intervention/gif/src/Encoders/DataSubBlockEncoder.php
Строк: 32
<?php

declare(strict_types=1);

namespace 
InterventionGifEncoders;

use 
InterventionGifBlocksDataSubBlock;

class 
DataSubBlockEncoder extends AbstractEncoder
{
    
/**
     * Create new instance.
     */
    
public function __construct(DataSubBlock $entity)
    {
        
parent::__construct($entity);
    }

    
/**
     * Encode current entity.
     */
    
public function encode(): string
    
{
        return 
pack('C'$this->entity->size()) . $this->entity->value();
    }
}
Онлайн: 1
Реклама