public function convertPolicies(array $policies)
    {
        $result = [];

        foreach ($policies as $policy) {
            if ($policy->getId() !== null) {
                $result[] = $policy->getId();
            }
        }

        return $result;
    }
public function convertPolicies(array $policies)
    {
        $result = [];

        foreach ($policies as $policy) {
            if ($policy->getId() !== null) {
                $result[] = $policy->getId();
            }
        }

        return $result;
    }
public function convertPolicies ( array $ policies ) { $ result = [ ] ; foreach ( $ policies as $ policy ) { if ( $ policy -> getId ( ) !== null ) { $ result [ ] = $ policy -> getId ( ) ; } } return $ result ; }
Converts a list of Policy objects into a list of there string representations

@param PolicyInterface[] $policies
@return string[]
Converts a list of Policy objects into a list of there string representations