Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Add base interface of DirectionLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Aug 19, 2018
1 parent d591323 commit fd300cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
12 changes: 1 addition & 11 deletions src/Contracts/Definition/Dependent/DirectiveLocation.php
Expand Up @@ -14,7 +14,7 @@
/**
* Interface DirectiveLocation
*/
interface DirectiveLocation
interface DirectiveLocation extends DependentTypeDefinition
{
/**
* @version SDL June 2018
Expand Down Expand Up @@ -208,14 +208,4 @@ public function isPrivate(): bool;
* @return bool
*/
public function isAllowedFor(TypeInterface $type): bool;

/**
* @return string
*/
public function getName(): string;

/**
* @return string
*/
public function __toString(): string;
}
1 change: 0 additions & 1 deletion src/Contracts/Definition/TypeDefinition.php
Expand Up @@ -12,7 +12,6 @@
use Railt\Reflection\Contracts\Definition;
use Railt\Reflection\Contracts\Definition\Behaviour\Deprecatable;
use Railt\Reflection\Contracts\Definition\Behaviour\ProvidesInheritance;
use Railt\Reflection\Contracts\Dictionary;
use Railt\Reflection\Contracts\Invocation\Behaviour\ProvidesDirectives;

/**
Expand Down
8 changes: 8 additions & 0 deletions src/Definition/Dependent/DirectiveLocation.php
Expand Up @@ -52,4 +52,12 @@ public function isAllowedFor(TypeInterface $type): bool

return $type->instanceOf(Type::of($location));
}

/**
* @return bool
*/
public function isBuiltin(): bool
{
return true;
}
}

0 comments on commit fd300cc

Please sign in to comment.