In the video this does not tell. Because the authors of the video lessons themselves do not know anything, but only how the monkeys repeat a couple of teams learned from another such dunce.
The explanation is very simple: in PHP you can always refer to the result returned by the variable. For example, the record type
$name = $array[1]["name"];
means that we first accessed the $array[1] variable, but it is also an array, and we can immediately refer to its element ["name"]
The same with objects. If the expression returns an object, then we can draw an arrow and access its property or method. And so on to infinity. In English, this is called method chaining, that is, stringing one method onto another. For example, in PDO you can write this:
$id = $pdo->query("INSERT INTO t VALUES(NULL)")->insertId();
Accordingly, you can write $this->data->name only if data is an object.