kopia lustrzana https://github.com/c9/core
20 wiersze
216 B
PHP
20 wiersze
216 B
PHP
|
<?php
|
||
|
|
||
|
class Foo {
|
||
|
|
||
|
const c = 'CONSTANT';
|
||
|
|
||
|
public function __construct() {
|
||
|
$self->x = 1;
|
||
|
$self->y = 2;
|
||
|
}
|
||
|
|
||
|
public static function members() {
|
||
|
return array('x', 'y');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$foo = new Foo;
|
||
|
$foo
|
||
|
|
||
|
?>
|