src/Neuron/Models/Observable.php
public function on ($event, callable $callback)
	{
		if (!isset ($this->events[$event]))
		{
			$this->events[$event] = array ();
		}
		$this->events[$event][] = $callback;
	}
public function on ($event, callable $callback)
	{
		if (!isset ($this->events[$event]))
		{
			$this->events[$event] = array ();
		}
		$this->events[$event][] = $callback;
	}
public function on ( $ event , callable $ callback ) { if ( ! isset ( $ this -> events [ $ event ] ) ) { $ this -> events [ $ event ] = array ( ) ; } $ this -> events [ $ event ] [ ] = $ callback ; }
Listen to specific events
@param $event
@param callable $callback
Listen to specific events