ClassInstance.php 621 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace OSInet\Class_Grapher;
  3. /**
  4. * Representation of a "class" symbol in source code.
  5. */
  6. class ClassInstance extends InterfaceInstance {
  7. public $interfaces = array();
  8. /**
  9. * @param \PGPClass $symbol
  10. * The symbol returned by grammar_parser.
  11. * @param int $implicit
  12. * @param Logger $logger
  13. */
  14. public function __construct(\PGPClass $symbol, $implicit = 0, Logger $logger) {
  15. parent::__construct($symbol, $implicit, $logger);
  16. $this->interfaces = $symbol->implements;
  17. }
  18. public function basicAttributes() {
  19. $ret = array(
  20. 'shape' => 'rect',
  21. );
  22. return $ret;
  23. }
  24. }