Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (34 sloc) 535 Bytes
<?php
require_once 'Pebble.php';
require_once 'PebbleCollector.php';
/** @PebbleFactory() */
class SomeBar
{
public function run()
{
echo "Bar!\n";
}
}
/** @SharedPebble (foo) */
class SomeFoo
{
/** @Pebble(someBar ) */
private $bar;
public function run()
{
echo "Foo!\n";
$this->bar->run();
}
}
class Master extends Pebble
{
/** @Pebble */
private $foo;
public function run()
{
$this->foo->run();
}
}
PebbleCollector::collectPebbles();
$master = new Master();
$master->run();
You can’t perform that action at this time.