OpenApi Gen: add toString method for easier testing
This commit is contained in:
parent
8ddd9b6918
commit
53c2a557e0
|
@ -17,6 +17,16 @@ class Type
|
|||
$this->context = $context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the typehint as read from the docblock
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->typehint;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a primitive PHP type
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue