public function policiesAtDepth(int $i): array
    {
        $policies = array();
        foreach ($this->_nodesAtDepth($i) as $node) {
            $policies[] = new PolicyInformation($node->validPolicy(),
                ...$node->qualifiers());
        }
        return $policies;
    }
public function policiesAtDepth(int $i): array
    {
        $policies = array();
        foreach ($this->_nodesAtDepth($i) as $node) {
            $policies[] = new PolicyInformation($node->validPolicy(),
                ...$node->qualifiers());
        }
        return $policies;
    }
public function policiesAtDepth ( int $ i ) : array { $ policies = array ( ) ; foreach ( $ this -> _nodesAtDepth ( $ i ) as $ node ) { $ policies [ ] = new PolicyInformation ( $ node -> validPolicy ( ) , ... $ node -> qualifiers ( ) ) ; } return $ policies ; }
Get policies at given policy tree depth.

@param int $i Depth in range 1..n
@return PolicyInformation[]
Get policies at given policy tree depth .