for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Leaditin\Annotations\Collector;
use Leaditin\Annotations\Reflection;
/**
* Class MemoryCollector
*
* @package Leaditin\Annotations\Collector
* @author Igor Vuckovic <[email protected]>
*/
class MemoryCollector extends AbstractCollector
{
* {@inheritdoc}
public function read(string $class) : Reflection
if ($this->has($class) === false) {
$this->write($class, $this->reader->read($class));
}
return $this->get($class);
protected function write(string $class, Reflection $reflection)
$this->set($class, $reflection);