Created
February 11, 2016 21:15
-
-
Save ABM-Dan/666ada330fcb7ba2cefb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Parent{ | |
private static $attribute; | |
public getAttribute(){ | |
return self::$attribute; | |
} | |
} | |
class Child extends Parent{ | |
private static $attribute = 'not null'; | |
} | |
$obj = new Child(); | |
echo $obj->getAttribute(); // I'd like to get not null here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment