@@ -495,6 +495,9 @@ |
||
| 495 | 495 | $this->assertSame('{"status":"OK","more":false,"items":[{"id":123,"label":"FOO"}]}', $response->getContent()); |
| 496 | 496 | } |
| 497 | 497 | |
| 498 | + /** |
|
| 499 | + * @param string $field |
|
| 500 | + */ |
|
| 498 | 501 | private function configureFormConfig($field, $disabled = false) |
| 499 | 502 | { |
| 500 | 503 | $form = $this->prophesize(Form::class); |
@@ -447,6 +447,9 @@ discard block |
||
| 447 | 447 | return implode('-', $components); |
| 448 | 448 | } |
| 449 | 449 | |
| 450 | + /** |
|
| 451 | + * @param string $fieldName |
|
| 452 | + */ |
|
| 450 | 453 | private function hasCachedFieldGetter($object, $fieldName) |
| 451 | 454 | { |
| 452 | 455 | return isset( |
@@ -454,6 +457,9 @@ discard block |
||
| 454 | 457 | ); |
| 455 | 458 | } |
| 456 | 459 | |
| 460 | + /** |
|
| 461 | + * @param string $fieldName |
|
| 462 | + */ |
|
| 457 | 463 | private function callCachedGetter($object, $fieldName, array $parameters = []) |
| 458 | 464 | { |
| 459 | 465 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -472,6 +478,10 @@ discard block |
||
| 472 | 478 | return $object->{$fieldName}; |
| 473 | 479 | } |
| 474 | 480 | |
| 481 | + /** |
|
| 482 | + * @param string $fieldName |
|
| 483 | + * @param string $method |
|
| 484 | + */ |
|
| 475 | 485 | private function cacheFieldGetter($object, $fieldName, $method, $getter = null) |
| 476 | 486 | { |
| 477 | 487 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |