Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\Gedmo;

use Gedmo\Mapping\Annotation\Blameable;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class BlameableTagValueNode extends AbstractTagValueNode
final class BlameableTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Gedmo\Blameable';

/**
* @var string
*/
Expand Down Expand Up @@ -64,4 +60,9 @@ public function __toString(): string

return $this->printContentItems($contentItems);
}

public function getShortName(): string
{
return '@Gedmo\Blameable';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\Gedmo;

use Gedmo\Mapping\Annotation\Loggable;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class LoggableTagValueNode extends AbstractTagValueNode
final class LoggableTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Gedmo\Loggable';

/**
* @var string
*/
Expand All @@ -39,4 +35,9 @@ public function __toString(): string

return $this->printContentItems($contentItems);
}

public function getShortName(): string
{
return '@Gedmo\Loggable';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\Gedmo;

use Gedmo\Mapping\Annotation\Slug;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class SlugTagValueNode extends AbstractTagValueNode
final class SlugTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Gedmo\Slug';

/**
* @var string
*/
Expand All @@ -38,4 +34,9 @@ public function getFields(): array
{
return $this->fields;
}

public function getShortName(): string
{
return '@Gedmo\Slug';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\Gedmo;

use Gedmo\Mapping\Annotation\SoftDeleteable;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class SoftDeleteableTagValueNode extends AbstractTagValueNode
final class SoftDeleteableTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Gedmo\SoftDeleteable';

/**
* @var string
*/
Expand Down Expand Up @@ -64,4 +60,9 @@ public function getFieldName(): string
{
return $this->fieldName;
}

public function getShortName(): string
{
return '@Gedmo\SoftDeleteable';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\Gedmo;

use Gedmo\Mapping\Annotation\Versioned;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class VersionedTagValueNode extends AbstractTagValueNode
final class VersionedTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Gedmo\Versioned';

/**
* @var string
*/
Expand All @@ -23,4 +19,9 @@ public function __toString(): string
{
return '';
}

public function getShortName(): string
{
return '@Gedmo\Versioned';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\JMS;

use JMS\DiExtraBundle\Annotation\Inject;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class JMSInjectTagValueNode extends AbstractTagValueNode
final class JMSInjectTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@DI\Inject';

/**
* @var string
*/
Expand Down Expand Up @@ -69,4 +65,9 @@ public function getServiceName(): ?string
{
return $this->serviceName;
}

public function getShortName(): string
{
return '@DI\Inject';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@

use JMS\Serializer\Annotation\Type;
use Nette\Utils\Strings;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\TypeAwareTagValueNodeInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class SerializerTypeTagValueNode extends AbstractTagValueNode implements TypeAwareTagValueNodeInterface
final class SerializerTypeTagValueNode extends AbstractTagValueNode implements TypeAwareTagValueNodeInterface, ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Serializer\Type';

/**
* @var string
*/
Expand Down Expand Up @@ -59,4 +55,9 @@ public function replaceName(string $oldName, string $newName): bool

return false;
}

public function getShortName(): string
{
return '@Serializer\Type';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
namespace Rector\BetterPhpDocParser\PhpDocNode\PHPDI;

use DI\Annotation\Inject;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;

final class PHPDIInjectTagValueNode extends AbstractTagValueNode
final class PHPDIInjectTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Inject';

/**
* @var string
*/
Expand All @@ -37,4 +33,9 @@ public function __toString(): string

return '(' . $this->value . ')';
}

public function getShortName(): string
{
return '@Inject';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@

namespace Rector\BetterPhpDocParser\PhpDocNode\Sensio;

use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;

final class SensioMethodTagValueNode extends AbstractTagValueNode
final class SensioMethodTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Method';

/**
* @var string
*/
Expand Down Expand Up @@ -44,4 +40,9 @@ public function getMethods(): array
{
return $this->methods;
}

public function getShortName(): string
{
return '@Method';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@

namespace Rector\BetterPhpDocParser\PhpDocNode\Sensio;

use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

final class SensioTemplateTagValueNode extends AbstractTagValueNode
final class SensioTemplateTagValueNode extends AbstractTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Template';

/**
* @var string
*/
Expand Down Expand Up @@ -72,4 +68,9 @@ public function getTemplate(): ?string
{
return $this->template;
}

public function getShortName(): string
{
return '@Template';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@

namespace Rector\BetterPhpDocParser\PhpDocNode\Symfony\Validator\Constraints;

use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\BetterPhpDocParser\Contract\PhpDocNode\TypeAwareTagValueNodeInterface;
use Rector\Symfony\PhpDocParser\Ast\PhpDoc\AbstractConstraintTagValueNode;
use Symfony\Component\Validator\Constraints\Choice;

final class AssertChoiceTagValueNode extends AbstractConstraintTagValueNode implements TypeAwareTagValueNodeInterface
final class AssertChoiceTagValueNode extends AbstractConstraintTagValueNode implements TypeAwareTagValueNodeInterface, ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Assert\Choice';

/**
* @var string
*/
Expand Down Expand Up @@ -76,4 +72,9 @@ public function changeCallbackClass(string $newClass): void
{
$this->callback[0] = $newClass;
}

public function getShortName(): string
{
return '@Assert\Choice';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@

namespace Rector\BetterPhpDocParser\PhpDocNode\Symfony\Validator\Constraints;

use Rector\BetterPhpDocParser\Contract\PhpDocNode\ShortNameAwareTagInterface;
use Rector\Symfony\PhpDocParser\Ast\PhpDoc\AbstractConstraintTagValueNode;
use Symfony\Component\Validator\Constraints\Type;

final class AssertTypeTagValueNode extends AbstractConstraintTagValueNode
final class AssertTypeTagValueNode extends AbstractConstraintTagValueNode implements ShortNameAwareTagInterface
{
/**
* @var string
*/
public const SHORT_NAME = '@Assert\Type';

/**
* @var string
*/
Expand All @@ -33,4 +29,9 @@ public function __toString(): string
{
return '("' . $this->type . '")';
}

public function getShortName(): string
{
return '@Assert\Type';
}
}