Skip to content

[New Rule] Abstract classes MUST NOT be marked as public @api #22

Closed
@lenaorobei

Description

@lenaorobei

Rule

Abstract classes MUST NOT be marked as public @api.

Reason

Source: Magento Technical Guidelines.

Interfaces should be used instead because Magento follows Composition over Inheritance principle.

Implementation

  • Subscribe to T_CLASS token.
  • Analyse its PHPDoc block and try find @api annotation.

Metadata

Metadata

Assignees

Labels

Progress: good first issueIssues is easy to get started withacceptedNew rule is acceptednew ruleNew feature implementationtechnical guidelinesThe rule is based on Magento Technical Guidelines

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions