kronostechnologies/graphql-framework

View on GitHub
src/Kronos/GraphQLFramework/Controller/InterfaceController.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace Kronos\GraphQLFramework\Controller;


use Kronos\GraphQLFramework\Resolver\Context\GraphQLContext;

abstract class InterfaceController
{
    /**
     * @var GraphQLContext
     */
    protected $context;

    /**
     * @param GraphQLContext $context
     */
    public function __construct(GraphQLContext $context)
    {
        $this->context = $context;
    }

    /**
     * @param mixed $value
     * @return mixed
     */
    public abstract function resolveInterfaceType($value);
}