fix: Аннотации к типам.
This commit is contained in:
parent
f07a668b30
commit
540805ae35
3 changed files with 24 additions and 6 deletions
|
|
@ -129,6 +129,21 @@ class TemplateImage
|
|||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $text
|
||||
* @param object{
|
||||
* fontFamily: string,
|
||||
* fontSize: int,
|
||||
* fontStyle: array{string, string},
|
||||
* color: string,
|
||||
* align: array,
|
||||
* valign: array,
|
||||
* left: int,
|
||||
* top: int,
|
||||
* width: int,
|
||||
* height: int
|
||||
* } $value
|
||||
*/
|
||||
function imageText(string $text, object $value): void
|
||||
{
|
||||
$text = strtr($text, $this->context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue