I'm using PhpStorm to develop PHP and I'm curious about that calling a function limits itself before calling certain function with auto-complete.
Here is the codes below I want to do.
$this->Order = new Order();
$this->Order->setProductDetail()->setOrderDetail()->sendPayment();
So the sendPayment()
function should be the last to be called. and setProductDetail()
& setOrderDetail()
functions should be prior than sendPayment()
.
Therefore this code is invalid.
$this->Order->sendPayment()->setProductDetail()->setOrderDetail();
Is it possible for PhpStorm to do this with auto-complete?