Lines Matching refs:result
22 private $result = [];
26 * @param array $result
28 public function __construct(array $result = [])
30 $this->result = $result;
39 return isset($this->result[$offset]);
48 return $this->result[$offset] ?? null;
59 $this->result[] = $value;
61 $this->result[$offset] = $value;
70 unset($this->result[$offset]);
78 return $this->result;
86 return (string) \key($this->result);
95 return new LanguageResult(\array_intersect_key($this->result, \array_flip($whitelist)));
104 return new LanguageResult(\array_diff_key($this->result, \array_flip($blacklist)));
112 return $this->result;
120 if (!\count($this->result))
125 $first = \array_values($this->result)[0];
127 return new LanguageResult(\array_filter($this->result, function ($value) use ($first) {
137 return new \ArrayIterator($this->result);
147 return new LanguageResult(\array_slice($this->result, $offset, $length));