UML2PHP5 -> Support::relationships-composition
French version

UML diagram
Diagramme UML: héritage
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
/**
 * 
 * Code skeleton generated by dia-uml2php5 plugin
 * written by KDO kdo@zpmag.com 
 */
require_once('MyClassB.class.php');
require_once('MyClassC.class.php');

class MyClassA {

   /**
    * Component
    * @var MyClassB
    * @access public
    */

   public $myB = NULL ;

   /**
    * Component
    * @var MyClassC
    * @access private
    */

   private $O_MyClassC = array() ;
	

}
?>

Valid XHTML 1.1! Valid CSS! Mozilla Homepage Apache Web Server! PHP: Hypertext Processor MySQL: Open Source Database
Get Firefox!