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 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]'),
];
}