コード例 #1
0
ファイル: Set.php プロジェクト: ln-e/simple-set
 /**
  * (PHP 5 &gt;= 5.0.0)<br/>
  * Checks if current position is valid
  * @link http://php.net/manual/en/iterator.valid.php
  * @return boolean The return value will be casted to boolean and then evaluated.
  * Returns true on success or false on failure.
  */
 public function valid()
 {
     return $this->sets->offsetExists($this->currentKey);
 }
コード例 #2
0
ファイル: SetArray.php プロジェクト: ln-e/simple-set
 /**
  * Добавляет к текущему SetArray подмножества из другого
  *
  * @param SetArray $anotherSet
  */
 public function mergeSet(SetArray $anotherSet)
 {
     $this->merge($anotherSet->getArrayCopy());
 }