php__phplib/OSInet/Class_Grapher/ClassInstance.php
Frederic G. MARAND 7d0f0d44ea Restructured file layout to incorporate a PSR0 version of Class_Grapher.
- 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.
2012-05-02 23:29:47 +02:00

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;
}
}