Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 18933 программиста и 1633 робота. Сейчас ищут 1194 программиста ...
Voting
Вернуться к: Protected Members
Voting
The voting resulted in a sum of +27 votes. Thus, the "no prefix" solution had been chosen.
A vote of 0 will not be counted.
If the overall score at the end of the call-for-votes is positive, class members will not be prefixed. If negative, they will be prefixed.
No prefix (accepted)
A vote of +1 suggests class members should not be prefixed.
<?php
class Foo
{
protected $somevar;
protected function somefunc();
}
?>
Prefix (not accepted)
A vote of -1 suggests class members should be prefixed with an underscore.
<?php
class Foo
{
protected $_somevar;
protected function _somefunc();
}
?>
Вернуться к: Protected Members