Magento 1: chaining: What is the benefit ?

Confused about this:
$model->setPrice($price)->setSku(‘SK83293432’);
seems the same as:
$model->setPrice($price);
$model->setSku(‘SK83293432’);

The later code is clean and easy to read. What is the purpose of chaining ?

submitted by /u/broederBond
[link] [comments]