10 public function build($interchange) {
12 foreach ($interchange->directives as
$d) {
19 if ($d->allowed !== null) {
20 $schema->addAllowedValues(
25 foreach ($d->aliases as $alias) {
31 if ($d->valueAliases !== null) {
32 $schema->addValueAliases(
38 $schema->postProcess();