File "HasEmitterTrait.php"

Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/vendor/guzzlehttp/guzzle/src/Event/HasEmitterTrait.php
File size: 347 B (347 B bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php
namespace GuzzleHttp\Event;

/**
 * Trait that implements the methods of HasEmitterInterface
 */
trait HasEmitterTrait
{
    /** @var EmitterInterface */
    private $emitter;

    public function getEmitter()
    {
        if (!$this->emitter) {
            $this->emitter = new Emitter();
        }

        return $this->emitter;
    }
}