Example:
$this->getResponse()
->appendBody('Hello' . $name)
In the previous example, I understand the use of the first arrow operator, but not the second, since I don’t know whether what the second one does is similar to passing arguments to the function, in which case I wonder why it doesn’t go inside the parenthesis.
I believe that second operator just calls
appendBody()on the object returned by$this->getResponse().In other words, it’s a shortcut for this: