This file contains hidden or 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 | |
class FooHandling extends CComponent | |
{ | |
public function onFoo($event) {} | |
} | |
function handlerOne($event){} | |
function handlerTwo($event){} |
This file contains hidden or 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
missingNumber = ((v)-> | |
(n)-> | |
v[n] ?0) | |
2:10 | |
3:15 | |
4:22 | |
5:31 | |
6:42 | |
8:666 |
This file contains hidden or 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 | |
// For the original version, see | |
// http://forum.golem.de/read.php?54793,2785037,2785926#msg-2785926 | |
$a = array(0, | |
'fizz', | |
'buzz', | |
'fizzbuzz' ) ; |
This file contains hidden or 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 | |
interface Something{} | |
interface AnotherThing{} | |
class Foo{ | |
public function __construct(Something $thing){} | |
public function foo(Something $thing){}} | |
// No problem. |
This file contains hidden or 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 | |
class Base{ | |
protected $x; | |
public function getX(){ | |
return $this->x;}} | |
/** | |
* This class tries to ensure that $x is always an integer. |
This file contains hidden or 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 | |
/** | |
* Something the Client may depend on or not. | |
*/ | |
interface Dependency{ | |
public function action();} | |
/** | |
* The Client. |