2021-08-01 13:33:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Inwebs\PhpCodesniffer\Sniffs\Annotations\data;
|
|
|
|
|
2023-02-10 15:37:30 +01:00
|
|
|
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
|
|
|
final class OwnAttribute
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-08-01 13:33:41 +02:00
|
|
|
class PropertyOrder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* A small description.
|
|
|
|
*
|
|
|
|
* And
|
|
|
|
* some
|
|
|
|
* Text
|
|
|
|
*
|
|
|
|
* @var string With a nice and multi line
|
|
|
|
* description
|
|
|
|
* @Flow\Inject(name="StrangeContent")
|
|
|
|
* @ORM\Column(stuff={
|
|
|
|
* "hallo"
|
|
|
|
* })
|
|
|
|
*/
|
|
|
|
protected $test;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A small description.
|
|
|
|
*
|
|
|
|
* And
|
|
|
|
* some
|
|
|
|
* Text
|
|
|
|
*
|
|
|
|
* @Flow\Inject
|
2023-02-10 15:37:30 +01:00
|
|
|
* @var string a very long description
|
2021-08-01 13:33:41 +02:00
|
|
|
* @ORM\Column(stuff={
|
|
|
|
* "hallo"
|
|
|
|
* })
|
|
|
|
*/
|
|
|
|
protected $testTwo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Flow\Inject
|
|
|
|
* @var \stdClass mega!
|
|
|
|
*/
|
|
|
|
protected $valid;
|
2023-02-10 15:37:30 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \stdClass
|
|
|
|
* @Flow\Validate
|
|
|
|
*/
|
|
|
|
#[OwnAttribute]
|
|
|
|
protected $inValidWithAttribute;
|
2021-08-01 13:33:41 +02:00
|
|
|
}
|