79407169

Date: 2025-02-02 19:16:18
Score: 0.5
Natty:
Report link

or you can use: Trait

<?php

trait TraitA {
    public function sayHello() {
        echo 'Hello';
    }
}

trait TraitB {
    public function sayWorld() {
        echo 'World';
    }
}

class MyHelloWorld
{
    use TraitA, TraitB; // A class can use multiple traits
    // ...
}

https://www.php.net/manual/en/language.oop5.traits.php

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roma ะจ.