| @@ 126-132 (lines=7) @@ | ||
| 123 | * @param string $name |
|
| 124 | * @return ProfileInterface |
|
| 125 | */ |
|
| 126 | public function withName(string $name): ProfileInterface |
|
| 127 | { |
|
| 128 | $clone = clone $this; |
|
| 129 | $clone->name = $name; |
|
| 130 | $clone->changedFields['name'] = 'name'; |
|
| 131 | ||
| 132 | return $clone; |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| @@ 139-145 (lines=7) @@ | ||
| 136 | * @param string $location |
|
| 137 | * @return ProfileInterface |
|
| 138 | */ |
|
| 139 | public function withLocation(string $location): ProfileInterface |
|
| 140 | { |
|
| 141 | $clone = clone $this; |
|
| 142 | $clone->location = $location; |
|
| 143 | $clone->changedFields['location'] = 'location'; |
|
| 144 | ||
| 145 | return $clone; |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| @@ 152-158 (lines=7) @@ | ||
| 149 | * @param string $description |
|
| 150 | * @return ProfileInterface |
|
| 151 | */ |
|
| 152 | public function withDescription(string $description): ProfileInterface |
|
| 153 | { |
|
| 154 | $clone = clone $this; |
|
| 155 | $clone->description = $description; |
|
| 156 | $clone->changedFields['description'] = 'description'; |
|
| 157 | ||
| 158 | return $clone; |
|
| 159 | } |
|
| 160 | ||
| 161 | /** |
|
| @@ 165-171 (lines=7) @@ | ||
| 162 | * @param string $url |
|
| 163 | * @return ProfileInterface |
|
| 164 | */ |
|
| 165 | public function withUrl(string $url): ProfileInterface |
|
| 166 | { |
|
| 167 | $clone = clone $this; |
|
| 168 | $clone->url = $url; |
|
| 169 | $clone->changedFields['url'] = 'url'; |
|
| 170 | ||
| 171 | return $clone; |
|
| 172 | } |
|
| 173 | ||
| 174 | public function putProfile() |
|