Example #1
0
 public function isValid()
 {
     return parent::isValid() and isset($this->center, $this->radius);
 }
Example #2
0
 /**
  * Returns <code>true</code> if all constraints of this {@link CuboidSpace} are initialized, <code>false</code>
  * otherwise.
  *
  * @return bool whether the {@link CuboidSpace} is valid.
  */
 public function isValid()
 {
     return parent::isValid() and isset($this->x1, $this->x2, $this->y1, $this->y2, $this->z1, $this->z2, $this->levelName);
 }