| @@ 57-66 (lines=10) @@ | ||
| 54 | * |
|
| 55 | * @return self |
|
| 56 | */ |
|
| 57 | public function update(Expression $name, array $arguments = []) |
|
| 58 | { |
|
| 59 | if ($this->name === $name |
|
| 60 | && $this->arguments === $arguments |
|
| 61 | ) { |
|
| 62 | return $this; |
|
| 63 | } |
|
| 64 | ||
| 65 | return new self($name, $arguments); |
|
| 66 | } |
|
| 67 | ||
| 68 | protected function compileCode(&$code) |
|
| 69 | { |
|
| @@ 44-53 (lines=10) @@ | ||
| 41 | * |
|
| 42 | * @return self |
|
| 43 | */ |
|
| 44 | public function update(Expression $value, array $arguments) |
|
| 45 | { |
|
| 46 | if ($this->value === $value |
|
| 47 | && $this->arguments === $arguments |
|
| 48 | ) { |
|
| 49 | return $this; |
|
| 50 | } |
|
| 51 | ||
| 52 | return new self($value, $arguments); |
|
| 53 | } |
|
| 54 | ||
| 55 | protected function updateValueExpression(Expression $value) |
|
| 56 | { |
|
| @@ 45-54 (lines=10) @@ | ||
| 42 | * |
|
| 43 | * @return NewExpression |
|
| 44 | */ |
|
| 45 | public function update(Expression $class, array $arguments = []) |
|
| 46 | { |
|
| 47 | if ($this->class === $class |
|
| 48 | && $this->arguments === $arguments |
|
| 49 | ) { |
|
| 50 | return $this; |
|
| 51 | } |
|
| 52 | ||
| 53 | return new self($class, $arguments); |
|
| 54 | } |
|
| 55 | ||
| 56 | protected function updateClassValue(Expression $class) |
|
| 57 | { |
|
| @@ 59-69 (lines=11) @@ | ||
| 56 | * |
|
| 57 | * @return self |
|
| 58 | */ |
|
| 59 | public function update(Expression $class, Expression $name, array $arguments = []) |
|
| 60 | { |
|
| 61 | if ($this->class === $class |
|
| 62 | && $this->name === $name |
|
| 63 | && $this->arguments === $arguments |
|
| 64 | ) { |
|
| 65 | return $this; |
|
| 66 | } |
|
| 67 | ||
| 68 | return new self($class, $name, $arguments); |
|
| 69 | } |
|
| 70 | ||
| 71 | protected function compileMember(&$code) |
|
| 72 | { |
|