UML2PHP5 -> Support::relationships-association
French version

UML Diagram
UML Diagram: association relationships
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
/**
 * 
 * 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 {

   /**
    * Association
    * @var MyClassC
    * @access protected
    */

   protected $myC = NULL ;

}
?>
File: MyClassB.class.php
<?php
/**
 * 
 * Code skeleton generated by dia-uml2php5 plugin
 * written by KDO kdo@zpmag.com 
 */
require_once('MyClassA.class.php');

class MyClassB {


}
?>

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