<?php


/**
 * @package pkg1
 */
function foo($foo = array()) {
    foreach ($foo as $bar) {
        FooBar::y($bar);
    }
}
/**
 * @package pkg2
 */
interface Foo {
    const FOOBAR = 0x12345678123456781;
    const BIZ = 123456781234567812345678;
    function x();
}

/**
 * @package pkg3
 */
abstract class Bar implements Foo {private $foo = 17;
    protected abstract function y(Bar $bar);
}

/**
 * @package pkg1
 */
class FooBar extends Bar {
    const FOO = 42;
    
    /**
     * My BAR constant.
     */
    const BAR = 23;
    
    
    private $x = 0x1234;
    protected $y = null;
    public $z = 'pdepend';
    
    public final function x() {}
    protected function y(Bar $bar) {
        if ($bar !== null) {
            $bar = new BarFoo($bar);
        }
    }   
}

/**
 * Enter description here...
 *
 * @return string
 */
function bar() {
    return 'bar';
}

$bar = new FooBar();
$bar->y();
?>