public function __construct(ConditionInterface $condition) { $this->conditions = new NamedCollection(); $this->conditions->add($condition); }