- new OSInet/Class_Grapher directory - moved misc.php and other miscellaneous PHP files to misc/ - split the PSR0 autoloader from misc.php to psr0.php - moved BackgroundApplication to FSM directory - moved FSM samples and docs to FSM help directory - new "apps" directory for the demo source - new Class_Grapher demo app - moved the files of the FSM FTP demo app to "apps". Likely broken.
28 lines
621 B
PHP
28 lines
621 B
PHP
<?php
|
|
|
|
namespace OSInet\Class_Grapher;
|
|
|
|
/**
|
|
* Representation of a "class" symbol in source code.
|
|
*/
|
|
class ClassInstance extends InterfaceInstance {
|
|
public $interfaces = array();
|
|
|
|
/**
|
|
* @param \PGPClass $symbol
|
|
* The symbol returned by grammar_parser.
|
|
* @param int $implicit
|
|
* @param Logger $logger
|
|
*/
|
|
public function __construct(\PGPClass $symbol, $implicit = 0, Logger $logger) {
|
|
parent::__construct($symbol, $implicit, $logger);
|
|
$this->interfaces = $symbol->implements;
|
|
}
|
|
|
|
public function basicAttributes() {
|
|
$ret = array(
|
|
'shape' => 'rect',
|
|
);
|
|
return $ret;
|
|
}
|
|
}
|