Skip to content

clean-code-studio/php-magic-methods-tutorial

 
 

Repository files navigation

Php Magic Methods

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 TBD
Lesson 3 Call public function __call(string $method, array $arguments) The __call() method will be called when an undefined or inaccessible method is called. TBD
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. TBD
Lesson 5 Get public function __get(string $property) The __get() method will be called when getting a member variable of a class. TBD
Lesson 6 Set public function __set(string $property) The __set() method will be called when setting a member variable of a class. TBD
Lesson 7 Isset public function __isset($content) The __isset() method will be called when calling isset() or empty() for an undefined or inaccessible member. TBD
Lesson 8 Unset public function __unset($content) The __unset() method will be called when calling reset() for an undefined or inaccessible member. TBD
Lesson 9 Invoke public function __invoke() The __invoke() method will be called when trying to call an object in a way of calling function. TBD

About

Repository Based on Clean Code Studio Php Magic Methods Youtube Series Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%