PHP Object Oriented Programming (OOP): Method Chaining (11/13)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Thank so much for these short videos! They come in handy when I need to re-examine OOP principles.

jonnathanmoreno
Автор

The bar method returns a reference to the object up to that point. $foo->bar() is effectively a reference to the whole object because of the use of the $this keyword inside bar().

sjoyce
Автор

Using foo & bar show great teaching skills.
Great work

raymondnoel
Автор

Thank you for your playlist, it is fast and really comprehensive, works great for me cause I already know these OOP things and just want to remember clearly.

JohnSmithhh
Автор

it is good for those of us who know OOP but not in PHP

AlexAlex-pemn
Автор

hey, i just wanted to say, some parts are to fast to follow, and it makes things unclear.

praywin
Автор

This doesn't really explain why returning $this allows method chaining.

nortski
Автор

Too bad you can't chain static methods :D

ArnoldsKtm