*/ public $internal = []; /** * @var ?string */ public $getter_method; /** * @var bool */ public $is_promoted = false; /** * @var list */ public $attributes = []; /** * @var array */ public $suppressed_issues = []; /** * @var ?string */ public $description; public function getInfo(): string { switch ($this->visibility) { case ClassLikeAnalyzer::VISIBILITY_PRIVATE: $visibility_text = 'private'; break; case ClassLikeAnalyzer::VISIBILITY_PROTECTED: $visibility_text = 'protected'; break; default: $visibility_text = 'public'; } return $visibility_text . ' ' . ($this->type ? $this->type->getId() : 'mixed'); } /** * @return list */ public function getAttributeStorages(): array { return $this->attributes; } }