diff options
| author | Andre Polykanine A.K.A. Menelion Elensúlë <andre@oire.org> | 2017-08-23 01:57:16 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-23 01:57:16 +0300 | 
| commit | abed0ba3ec0f454e4aba3fb97a7411d248659aaf (patch) | |
| tree | aa85531e22ae0f10000e9798ad3219584d2bb904 /ru-ru | |
| parent | 633730553e8ff0648b4ad51feb51fd900d610799 (diff) | |
| parent | e5d87c93a326280ba9125552cb8ccb00dd0efb39 (diff) | |
Merge pull request #2815 from pofigizm/patch-1
[php/ru] delete repetition
Diffstat (limited to 'ru-ru')
| -rw-r--r-- | ru-ru/php-ru.html.markdown | 39 | 
1 files changed, 0 insertions, 39 deletions
| diff --git a/ru-ru/php-ru.html.markdown b/ru-ru/php-ru.html.markdown index 181368de..2512201b 100644 --- a/ru-ru/php-ru.html.markdown +++ b/ru-ru/php-ru.html.markdown @@ -687,45 +687,6 @@ use My\Namespace as SomeOtherNamespace;  $cls = new SomeOtherNamespace\MyClass(); -*//********************** -* Позднее статическое связывание. -* -*/ - -class ParentClass -{ -    public static function who() -    { -        echo "I'm a " . __CLASS__ . "\n"; -    } - -    public static function test() -    { -        // self ссылается на класс в котором определен метод. -        self::who(); -        // static ссылается на класс в котором метод вызван. -        static::who(); -    } -} - -ParentClass::test(); -/* -I'm a ParentClass -I'm a ParentClass -*/ - -class ChildClass extends ParentClass -{ -    public static function who() -    { -        echo "But I'm " . __CLASS__ . "\n"; -    } -} - -ChildClass::test(); -/* -I'm a ParentClass -But I'm ChildClass  /**********************  * Позднее статическое связывание. | 
