src/Enforcer.php
public function resolvePath($type, $subject, $path)
    {
        $resolve = new Resolve($subject);
        $resolvedSet = $resolve->execute($path);
        $set = [];

        if (is_array($resolvedSet)) {
            foreach ($resolvedSet as $item) {
                $set[] = $this->getPropertyValue($type, $item);
            }
        } else {
            $set = $this->getPropertyValue($type, $subject);
        }
        return $set;
    }
public function resolvePath($type, $subject, $path)
    {
        $resolve = new Resolve($subject);
        $resolvedSet = $resolve->execute($path);
        $set = [];

        if (is_array($resolvedSet)) {
            foreach ($resolvedSet as $item) {
                $set[] = $this->getPropertyValue($type, $item);
            }
        } else {
            $set = $this->getPropertyValue($type, $subject);
        }
        return $set;
    }
public function resolvePath ( $ type , $ subject , $ path ) { $ resolve = new Resolve ( $ subject ) ; $ resolvedSet = $ resolve -> execute ( $ path ) ; $ set = [ ] ; if ( is_array ( $ resolvedSet ) ) { foreach ( $ resolvedSet as $ item ) { $ set [ ] = $ this -> getPropertyValue ( $ type , $ item ) ; } } else { $ set = $ this -> getPropertyValue ( $ type , $ subject ) ; } return $ set ; }
Resolve the provided path using a Resolver object instance

@param string $type The "type" of value to look for (key name)
@param mixed $subject The subject of the search
@param string $path The string path to the data requested (ex: permissions.tests.name)
@return array Set of results
Resolve the provided path using a Resolver object instance