for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\SchemaValidator\Rule;
class SupportedRules
{
/**
* @var array
*/
private static $supportedRules = [
RootTypesRule::class,
DirectivesRule::class,
TypesRule::class,
];
* @return array
public static function build(): array
$rules = [];
// Rules maintain state so they should always be re-instantiated.
foreach (self::$supportedRules as $className) {
$rules[] = new $className();
}
return $rules;