Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Clean Code with Multiple Classes in PHP

via CodeSignal

Overview

Explore principles for maintaining clean code with multiple classes in PHP. Learn about class collaboration, interfacing, abstract classes, managing dependencies, practicing polymorphism, and handling exceptions across classes.

Syllabus

  • Unit 1: Clean Code with Multiple Classes in PHP
    • Refactoring Feature Envy in PHP Classes
    • Refactor Message Chains in PHP
    • Middle Man Code Smell Refactoring
  • Unit 2: Interfaces and Abstract Classes in PHP
    • Refactor Payment Classes Using Interfaces in PHP
    • Decouple Transaction Processing with PaymentType Interface
    • Refactoring with Abstract Classes and Encapsulation in PHP
  • Unit 3: Dependency Management in PHP
    • Decoupling Car from Specific Engine Type in PHP
    • Refactor BookingService with NotificationService Interface in PHP
    • Factory Pattern Implementation in PHP
  • Unit 4: Polymorphism in Practice with PHP
    • Refactor Animal Feeding with Polymorphism in PHP
    • Refactor Animal Behaviors Using Polymorphism and Interfaces in PHP
  • Unit 5: Introduction to Exception Handling in PHP
    • Handling Exceptions Across Classes in PHP
    • Enhancing Exception Handling in a Library System Simulation

Reviews

Start your review of Clean Code with Multiple Classes in PHP

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.