UML Diagram
Support by UML2PHP5
| Constraint |
Supported |
| Generate all necessaries require_once |
YES |
| Generate an attribute which name is the declared associating role name
(here is myC) and its visibility (default public) |
YES |
| If the cardinality (multiplicity) was set to 1 or was not defined,
the attribute will be set to NULL (here is the case of $myC). |
YES |
| If the cardinality is different from 1, the attribute
will be set to array(). |
YES |
File: MyClassA.class.php
<?php
require_once('MyClassB.class.php');
require_once('MyClassC.class.php');
class MyClassA {
protected $myC = NULL ;
}
?>
File: MyClassB.class.php
<?php
require_once('MyClassA.class.php');
class MyClassB {
}
?>