/**
  * Check if $item is contained in $perimeter
  *
  * @param string $item
  *
  * @return boolean
  */
 public function isInPerimeter($item, PerimeterInterface $perimeter)
 {
     if ($perimeter->getType() == $this->getType() && is_string($item)) {
         return in_array($item, $perimeter->getItems());
     }
     return false;
 }
 /**
  * Check if $item is contained in $perimeter
  *
  * @param string $item
  *
  * @return boolean
  */
 public function isInPerimeter($item, PerimeterInterface $perimeter)
 {
     if ($perimeter->getType() == $this->getType() && is_string($item)) {
         foreach ($perimeter->getItems() as $path) {
             if (0 === strpos($item, $path)) {
                 return true;
             }
         }
     }
     return false;
 }