Lines Matching defs:controls
60 * controls [0] Controls OPTIONAL }
78 protected $controls;
82 * @param Control\Control ...$controls
84 public function __construct(int $messageId, Control\Control ...$controls)
87 $this->controls = new ControlBag(...$controls);
99 * Get the controls for this specific message.
103 public function controls(): ControlBag
105 return $this->controls;
120 if (count($this->controls->toArray()) !== 0) {
121 /** @var SequenceOfType $controls */
122 $controls = Asn1::context(0, Asn1::sequenceOf());
123 foreach ($this->controls->toArray() as $control) {
124 $controls->addChild($control->toAsn1());
126 $asn1->addChild($controls);
155 $controls = [];
161 throw new ProtocolException('The ASN1 structure for the controls is malformed.');
172 $controls[] = Control\PagingControl::fromAsn1($control);
175 $controls[] = Control\Sorting\SortingResponseControl::fromAsn1($control);
178 $controls[] = Control\Vlv\VlvResponseControl::fromAsn1($control);
181 $controls[] = Control\Ad\DirSyncResponseControl::fromAsn1($control);
184 $controls[] = Control\Control::fromAsn1($control);
273 ...$controls