Skip to content

Latest commit

 

History

History
78 lines (77 loc) · 2.4 KB

File metadata and controls

78 lines (77 loc) · 2.4 KB

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