Skip to content

Instantly share code, notes, and snippets.

@lloc
Last active March 23, 2018 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloc/d1c1f872c86c622d1757b508bd9fe83c to your computer and use it in GitHub Desktop.
Save lloc/d1c1f872c86c622d1757b508bd9fe83c to your computer and use it in GitHub Desktop.
<?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