Are Magento Object propertyNames that are prefixed by “_” different from ones that aren't?
-
22-02-2021 - |
Lösung
Magento 2 follows the PSR-2 coding standard, which states:
4.2
Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility.
4.3
Method names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange