snappymail/rainloop/v/0.0.0/app/libraries/GuzzleHttp/Event/HasEmitterTrait.php

21 lines
348 B
PHP

<?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;
}
}