for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Composite Utils package.
*
* (c) Emily Shepherd <[email protected]>
* For the full copyright and license information, please view the
* LICENSE.md file that was distributed with this source code.
* @package spaark/composite-utils
* @author Emily Shepherd <emily@emilyshepherd>
* @license MIT
*/
namespace Spaark\CompositeUtils\Traits;
use Spaark\CompositeUtils\Factory\Reflection\ReflectionCompositeFactory;
trait HasReflectorTrait
{
protected static $reflectionComposite;
protected static function getReflectionComposite()
if (!static::$reflectionComposite)
static::$reflectionComposite =
ReflectionCompositeFactory::fromClassName
(
get_called_class()
)
->build();
}
return static::$reflectionComposite;