Lines Matching refs:option
20 * Represents an attribute option. Described in RFC 4512, Section 2.5.2.
31 protected $option;
39 * @param string $option
41 public function __construct(string $option)
43 $this->option = $option;
63 * A convenience method to get the high value of a range option.
74 preg_match(self::MATCH_RANGE, $this->option, $match);
80 * A convenience method to get the low value of a range option.
90 preg_match(self::MATCH_RANGE, $this->option, $match);
96 * @param string $option
99 public function startsWith(string $option): bool
102 $this->lcOption = strtolower($this->option);
104 $option = strtolower($option);
106 return substr($this->lcOption, 0, strlen($option)) === $option;
112 * @param Option $option
115 public function equals(Option $option): bool
118 $this->lcOption = strtolower($this->option);
120 if ($option->lcOption === null) {
121 $option->lcOption = strtolower($option->option);
124 return $this->lcOption === $option->lcOption;
135 $this->lcOption = strtolower($this->option);
141 return $this->option;
149 return $this->option;
153 * Convenience factory method for creating a range option.