Lesson # | Magic Method | Syntax | Description | Tutorial Screencast |
---|---|---|---|---|
Lesson 1 | Construct | public function __construct() | The constructor of a class | https://www.youtube.com/watch?v=4MLA6ssPHGA |
Lesson 2 | Destruct | public function __destruct() | The destructor of a class | https://www.youtube.com/watch?v=f8SeAh_pZ80 |
Lesson 3 | Call | public function __call(string $method, array $arguments) | The __call() method will be called when an undefined or inaccessible method is called. | https://www.youtube.com/watch?v=LH-UCiPseP8 |
Lesson 4 | Call Static | public static function __callStatic(string $method, array $arguments) | The __callStatic() method will be called when an undefined or inaccessible static method is called. | https://www.youtube.com/watch?v=SFdptDojwJ8 |
Lesson 5 | Invoke | public function __invoke() | The __invoke() method will be called when trying to call an object in a way of calling function. | https://www.youtube.com/watch?v=ZXbGfMcFzUM |
Lesson 6 | Get | public function __get(string $property) | The __get() method will be called when getting a member variable of a class. | https://www.youtube.com/watch?v=ZDWMeA0sxLI |
Lesson 6 | Set | public function __set(string $property) | The __set() method will be called when setting a member variable of a class. | https://www.youtube.com/watch?v=ZDWMeA0sxLI |
Lesson 8 | Isset | public function __isset($content) | The __isset() method will be called when calling isset() or empty() for an undefined or inaccessible member. | TBD |
Lesson 9 | Unset | public function __unset($content) | The __unset() method will be called when calling reset() for an undefined or inaccessible member. | TBD |
forked from zhorton34/php-magic-methods-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
clean-code-studio/php-magic-methods-tutorial
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Repository Based on Clean Code Studio Php Magic Methods Youtube Series Tutorial
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%