public function getAll() {
    if (is_null($this->intersections)) {
      $this->intersections = [];
      if ($this->arraysSize >= 2) {
        $this->createIntersections();
      }
    }

    return $this->intersections;
  }
public function getAll() {
    if (is_null($this->intersections)) {
      $this->intersections = [];
      if ($this->arraysSize >= 2) {
        $this->createIntersections();
      }
    }

    return $this->intersections;
  }
public function getAll ( ) { if ( is_null ( $ this -> intersections ) ) { $ this -> intersections = [ ] ; if ( $ this -> arraysSize >= 2 ) { $ this -> createIntersections ( ) ; } } return $ this -> intersections ; }
Get all intersections given the constructor parameters.

@return array
Get all intersections given the constructor parameters .