GraphQL\Type\Definition\Type::toString PHP Method

toString() public method

public toString ( ) : string
return string
    public function toString()
    {
        return $this->name;
    }

Usage Example

Example #1
0
 /**
  * @return string
  */
 public function toString()
 {
     $str = $this->ofType instanceof Type ? $this->ofType->toString() : (string) $this->ofType;
     return '[' . $str . ']';
 }