UML diagram
Support by UML2PHP5
| Constraint |
Supported |
| Generate all necessaries requires inside MyClassA.class.php |
YES |
| Generate an attribute which name is the declared associating role name
(here is myB) and its visibility (default public). |
YES |
| Generate an attribute which name is derivated from the part class with $O_
prefix (here $O_MyClassC) if no associating role name was defined and
COMPOSITION_IMPLICIT_NAMING parameter from config file is ON (default) |
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 $myB). |
YES |
| If the cardinality is different from 1, the attribute
will be set to array() (here is the case of $O_myClassC). |
YES |
File: MyClassA.class.php
<?php
require_once('MyClassB.class.php');
require_once('MyClassC.class.php');
class MyClassA {
public $myB = NULL ;
private $O_MyClassC = array() ;
}
?>