Skip to content

Instantly share code, notes, and snippets.

View chriskoch's full-sized avatar

Christian Koch chriskoch

View GitHub Profile
@vosiander
vosiander / php-logging-trait
Last active December 13, 2015 17:08
Small logger class for proof-of-concept
<?php
/**
* Basic Logger Class which handles the setting and retrieving of captured arguments
*/
class Log
{
/**
* @var array
*/
private static $environment = array();
@chriskoch
chriskoch / getter-setter-traits.php
Created February 13, 2013 10:47
Using PHP 5.4 traits as getter and setter helper
<?php
trait Getters
{
/**
* calls Class::$name()
*
* @param string $name the name of a requested property
* @return mixed the result
*/