PHP Attributes 50 Minute Tutorial

PHP Attributes 50 Minute Tutorial

12.104 Lượt nghe
PHP Attributes 50 Minute Tutorial
Dive into PHP attributes as we use them to implement validation rules in a DTO, showcasing a practical and efficient coding approach. Check out THE FULL COURSE and get the code examples here: https://www.garyclarke.tech/p/learn-object-oriented-php 🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49) https://www.garyclarke.tech 👇 Follow me on Social Media: Twitter: https://twitter.com/garyclarketech Linkedin: https://www.linkedin.com/in/garyclarketech 💕Show support: https://www.paypal.com/donate/?hosted_button_id=YYGDXMG8B6N9N 0:00 Introduction 3:50 Data Transfer Objects 10:05 Readonly Properties and Classes 14:18 Creating Custom Attributes 15:57 Applying Attributes 17:40 Validation Mechanism 26:08 Attributes and Interfaces 34:13 Instantiating Attributes 40:18 Custom Validator Classes 45:40 Get the full course