Skip to content

Commit 0c8c1cc

Browse files
committed
creating "ArrayOf" annotation
1 parent 05e8cbe commit 0c8c1cc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Annotations/ArrayOf.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Webdevcave\Yadic\Annotations;
4+
5+
use Attribute;
6+
7+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
8+
class ArrayOf
9+
{
10+
public function __construct(
11+
public string $target,
12+
) {
13+
}
14+
}

0 commit comments

Comments
 (0)