有没有办法让一个对象在调用某个函数后调用一个函数?

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?