php-codesniffer/tests/DigiComp/Sniffs/Annotations/data/PropertyOrder.php
Ferdinand Kuhl 7063c47d64
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
Fixing doc type annotation sniffs to correctly ignore attributes
2023-02-10 15:37:30 +01:00

55 lines
884 B
PHP

<?php
namespace Inwebs\PhpCodesniffer\Sniffs\Annotations\data;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
final class OwnAttribute
{
}
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
* @var string a very long description
* @ORM\Column(stuff={
* "hallo"
* })
*/
protected $testTwo;
/**
* @Flow\Inject
* @var \stdClass mega!
*/
protected $valid;
/**
* @var \stdClass
* @Flow\Validate
*/
#[OwnAttribute]
protected $inValidWithAttribute;
}