Skip to content

Commit

Permalink
Merge pull request #9 from homeappcorporate/task/PHP-1092
Browse files Browse the repository at this point in the history
Добавила в complex fullName
  • Loading branch information
OlgaKrasheninnikova committed Jan 31, 2021
2 parents afdf1f7 + 726bda7 commit 37d54ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion HomeappData/Registry/Dto/Complex/Attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ class Attributes implements AttributesInterface
*/
public string $name;

public function __construct(string $name)
/**
* @Serializer\Type("string")
* @Serializer\Groups({"API"})
*/
public string $fullName;

public function __construct(string $name, string $fullName)
{
$this->name = $name;
$this->fullName = $fullName;
}
}

0 comments on commit 37d54ec

Please sign in to comment.