From extended, I want call a parent function like this
file 1 > Main Class:
class CheckoutProcessCore implements Interface
{
public function __construct(
Context $context,
CheckoutSession $checkoutSession
) {
$this->context = $context;
$this->smarty = $this->context->smarty;
$this->checkoutSession = $checkoutSession;
}
public function getSteps()
{
return $this->steps;
}
}
file 2 > Extended Class:
class Basket extends CheckoutProcessCore
{
protected static $basket_pid = null;
function __construct() {
parent::__construct();
}
public static function test() {
$step = parent::getSteps(); <-- the Problem!
[ ... ]
}
}
How can I call getSteps from test without any errors ? What's wrong in my Code ?
Thank you