This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface PersonInterface | |
{ | |
public function getFullname(); | |
} | |
trait PersonTrait | |
{ | |
private $name; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface FlyableThingInterface | |
{ | |
public function fly(); | |
} | |
interface AnimalInterface | |
{ | |
public function eat(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait FirstTrait | |
{ | |
public function firstMethod() { | |
echo 'This is the firstMethod()' . PHP_EOL; | |
} | |
} | |
trait SecondTrait | |
{ |
NewerOlder