Files
san-reymoros/vendor/guzzlehttp/guzzle/src/Event/HasEmitterTrait.php
gauvainboiche 058c2110e9 first commit
2020-03-03 22:45:25 +01:00

21 lines
347 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;
}
}