I guess there may not be any difference but personal preference, but when reading various PHP code I come across both ways to access the methods class.
What is
With self you can use it within the class and with the "MyClass", as you have, you can reference it externally:
$instance = new Myclass(); $variable = $instance::$foo