Skip to content

Instantly share code, notes, and snippets.

@musaid
Created October 4, 2012 06:07
Show Gist options
  • Save musaid/3831729 to your computer and use it in GitHub Desktop.
Save musaid/3831729 to your computer and use it in GitHub Desktop.
Handler Loader Class Sample file
<?php
/**
* @name MyClass
* @tags handler, denormalizer,
* some
* @param some-param
* @return return-param
*/
class MyClass {
function __construct() {
}
/**
* @name handle method in class MyClass
* @return [type] [description]
* @event Allied\No Event
*/
public function handle() {
return "handler";
}
protected static function stupid_protected_func() {
echo "stupid protected func";
}
/**
* @tags denormalizer, some,
* handler
* @return [type] [description]
* @event Allied\Some\Event
*/
public function not_handle() {
echo "something not handle";
}
}
/**
* @name MyOtherClass
* @tags denormalizer
* @param some-param
* @return return-param
*/
class MyOtherClass {
function __construct() {
}
// public function test_function() {
// return "value";
// }
}
/**
* @name MyThirdClass
* @tags handler
* @param some-param
* @return return-param
*/
class MyThirdClass {
function __construct() {
}
}
/**
* @name first anonymous function one
* @tags denormalizer
* @event Allied\Fun
*/
$anonymous = function() {
echo "Test Anonymous Function";
};
$variable = "cool";
/**
* @name second anonymous function one
* @tags denormalizer
* @event Allied\Some\Event
*/
$second_anonymous = function() {
return "stupid";
};
/**
* @name third anonymous function one
* @tags denormalizer
* @event Allied\Another\Event
*/
$third_anonymous = function() {
return "stupid";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment