コード例 #1
0
 /**
  * Implementations must call this constructor for initialization.
  *
  * @param \blaze\collections\set\SortedSet $set The decorated set.
  */
 public function __construct(\blaze\collections\set\SortedSet $set)
 {
     parent::__construct($set);
     $this->sortedSet = $set;
 }
コード例 #2
0
ファイル: TypedSet.php プロジェクト: robo47/BlazeFramework
 /**
  * Creates a decorator over the given set with the given typeChecker to check the type of values.
  *
  * @param \blaze\collections\Set $set The decorated set
  * @param \blaze\collections\TypeChecker $typeChecker The type checker
  */
 public function __construct(\blaze\collections\Set $set, \blaze\collections\TypeChecker $typeChecker)
 {
     parent::__construct($set);
     $this->typeChecker = $typeChecker;
 }
コード例 #3
0
ファイル: BoundedSet.php プロジェクト: robo47/BlazeFramework
 /**
  * Creates a new decorator for a set which is bounded.
  *
  * @param \blaze\collections\Set $set The decorated set
  * @param int $maxCount The maximal size
  */
 public function __construct(\blaze\collections\Set $set, $maxCount)
 {
     parent::__construct($set);
     $this->maxCount = $maxCount;
 }