public function getUserPerimeters(UserInterface $user)
    {
        $userPerimeters = array();
        foreach ($this->perimeterManager->findUserPerimeters($user) as $network) {
            foreach ($this->getPerimeters() as $perimeter) {
                if ($perimeter->getId() == $network['id'] && $perimeter->getName() == $network['external_id']) {
                    $userPerimeters[] = $perimeter;
                    break 1;
                }
            }
        }

        return $userPerimeters;
    }
public function getUserPerimeters(UserInterface $user)
    {
        $userPerimeters = array();
        foreach ($this->perimeterManager->findUserPerimeters($user) as $network) {
            foreach ($this->getPerimeters() as $perimeter) {
                if ($perimeter->getId() == $network['id'] && $perimeter->getName() == $network['external_id']) {
                    $userPerimeters[] = $perimeter;
                    break 1;
                }
            }
        }

        return $userPerimeters;
    }
public function getUserPerimeters ( UserInterface $ user ) { $ userPerimeters = array ( ) ; foreach ( $ this -> perimeterManager -> findUserPerimeters ( $ user ) as $ network ) { foreach ( $ this -> getPerimeters ( ) as $ perimeter ) { if ( $ perimeter -> getId ( ) == $ network [ 'id' ] && $ perimeter -> getName ( ) == $ network [ 'external_id' ] ) { $ userPerimeters [ ] = $ perimeter ; break 1 ; } } } return $ userPerimeters ; }
Get a user's perimeters

@param UserInterface $user

@return BusinessPerimeterInterface[] The perimeters
Get a user s perimeters