We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 17 | class NodeResolver |
||
| 18 | { |
||
| 19 | /** @var TypeResolver */ |
||
| 20 | private $typeResolver; |
||
| 21 | |||
| 22 | private $userData = [ |
||
| 23 | '1' => [ |
||
| 24 | 'id' => 1, |
||
| 25 | 'name' => 'John Doe', |
||
| 26 | ], |
||
| 27 | '2' => [ |
||
| 28 | 'id' => 2, |
||
| 29 | 'name' => 'Jane Smith', |
||
| 30 | ], |
||
| 31 | ]; |
||
| 32 | |||
| 33 | private $photoData = [ |
||
| 34 | '3' => [ |
||
| 35 | 'photoID' => 3, |
||
| 36 | 'photoWidth' => 300, |
||
| 37 | ], |
||
| 38 | '4' => [ |
||
| 39 | 'photoID' => 4, |
||
| 40 | 'photoWidth' => 400, |
||
| 41 | ], |
||
| 42 | ]; |
||
| 43 | |||
| 44 | public function __construct(TypeResolver $typeResolver) |
||
| 48 | |||
| 49 | public function resolvePhotoField($value, ResolveInfo $info) |
||
| 60 | |||
| 61 | public function idFetcher($id) |
||
| 71 | |||
| 72 | public function typeResolver($value) |
||
| 80 | } |
||
| 81 |