是否可以在PHPStorm中为受保护/私有字段生成@property php doc?

是否可以在PHPStorm中为受保护/私有字段生成@property php doc?,phpstorm,Phpstorm,我想问一下,是否可以基于PHPStorm中的受保护/私有字段为类生成@property phpdoc。以下是一个例子: 之前: /** * @ORM\Entity */ class Abc { use MagicAccessors; /** * @var string * @ORM\Column(type="string", nullable=true) */ protected $a; /** * @var str

我想问一下,是否可以基于PHPStorm中的受保护/私有字段为类生成@property phpdoc。以下是一个例子:

之前:

/**
 * @ORM\Entity
 */
class Abc
{
    use MagicAccessors;

    /**
     * @var string
     * @ORM\Column(type="string", nullable=true)
     */
    protected $a;

    /**
     * @var string
     * @ORM\Column(type="string", nullable=true)
     */
    protected $b;
    ...
之后:

/**
 * @ORM\Entity
 *
 * @property string $a
 * @property string $b
 */
class Abc
{
    use MagicAccessors;

    /**
     * @var string
     * @ORM\Column(type="string", nullable=true)
     */
    protected $a;

    /**
     * @var string
     * @ORM\Column(type="string", nullable=true)
     */
    protected $b;
    ...
我的观点是,我希望有时自动生成属性phpdoc,因为有时我使用magic访问器。清楚吗?:)

谢谢大家!