Last active
March 23, 2018 10:26
-
-
Save lloc/d1c1f872c86c622d1757b508bd9fe83c to your computer and use it in GitHub Desktop.
This file contains 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 | |
namespace wctrn\realloc; | |
trait Logger { | |
public function log_error( string $msg ) : bool { | |
return error_log( $msg ); | |
} | |
} | |
class Categorie { | |
use Logger; | |
public function get_content() { | |
$this->log_error( 'Not implemented' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment