OpenApi Gen: add toString method for easier testing

This commit is contained in:
Andreas Gohr 2024-01-04 09:58:20 +01:00
parent 8ddd9b6918
commit 53c2a557e0
1 changed files with 10 additions and 0 deletions

View File

@ -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
*