for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\GraphQL\Controllers\Fixtures\Integration\Controllers;
use Porpaginas\Arrays\ArrayResult;
use Psr\Http\Message\UploadedFileInterface;
use TheCodingMachine\GraphQL\Controllers\Annotations\Mutation;
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;
use TheCodingMachine\GraphQL\Controllers\Fixtures\Integration\Models\Contact;
use TheCodingMachine\GraphQL\Controllers\Fixtures\Integration\Models\User;
class ContactController
{
/**
* @Query()
* @return Contact[]
*/
public function getContacts(): array
return [
new Contact('Joe'),
new User('Bill', '[email protected]'),
];
}
* @Mutation()
* @param Contact $contact
* @return Contact
public function saveContact(Contact $contact): Contact
return $contact;
public function getContactsIterator(): ArrayResult
return new ArrayResult([
return new Porpaginas\Ar..., '[email protected]')))
Porpaginas\Arrays\ArrayResult
TheCodingMachine\GraphQL...ration\Models\Contact[]
]);