diff --git a/Test/Model/Product.php b/Test/Model/Product.php index e3e3c84..7db4d62 100644 --- a/Test/Model/Product.php +++ b/Test/Model/Product.php @@ -13,6 +13,7 @@ namespace Xezilaires\Test\Model; +use Symfony\Component\Serializer\Annotation\Groups; use Xezilaires\Annotation as XLS; /** @@ -23,6 +24,7 @@ final class Product /** * @var array * + * @Groups({"array"}) * @XLS\ArrayReference({ * @XLS\ColumnReference(column="A"), * @XLS\HeaderReference(header="Price USD") @@ -33,6 +35,7 @@ final class Product /** * @var string * + * @Groups({"column", "product"}) * @XLS\ColumnReference(column="A") */ public $name; @@ -40,6 +43,7 @@ final class Product /** * @var float|string * + * @Groups({"header", "product"}) * @XLS\HeaderReference(header="Price USD") */ public $price;