for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smoren\NestedAccessor\Factories;
use Smoren\NestedAccessor\Components\SilentNestedAccessor;
use Smoren\NestedAccessor\Interfaces\SilentNestedAccessorFactoryInterface;
use Smoren\NestedAccessor\Interfaces\SilentNestedAccessorInterface;
/**
* Class NestedAccessorFactory
* @author Smoren <[email protected]>
*/
class SilentNestedAccessorFactory implements SilentNestedAccessorFactoryInterface
{
* @inheritDoc
public static function create(&$source, string $pathDelimiter = '.'): SilentNestedAccessorInterface
return new SilentNestedAccessor($source, $pathDelimiter);
}
public static function fromArray(array &$source, string $pathDelimiter = '.'): SilentNestedAccessorInterface
return static::create($source, $pathDelimiter);
public static function fromObject(object &$source, string $pathDelimiter = '.'): SilentNestedAccessorInterface