for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\GraphQL\Controllers\Fixtures\Types;
use TheCodingMachine\GraphQL\Controllers\Annotations\Field;
use TheCodingMachine\GraphQL\Controllers\Annotations\Right;
use TheCodingMachine\GraphQL\Controllers\Annotations\SourceField;
use TheCodingMachine\GraphQL\Controllers\Annotations\Type;
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestObject;
/**
* @Type(class=TheCodingMachine\GraphQL\Controllers\Fixtures\TestObject::class)
* @SourceField(name="test")
* @SourceField(name="testBool", logged=true)
* @SourceField(name="testRight", right=@Right(name="FOOBAR"))
*/
abstract class AbstractFooType
{
* @Field()
* @param TestObject $test
* @param string $param
* @return string
public function customField(TestObject $test, string $param = 'foo'): string
return $test->getTest().$param;
}