Uses standard UML 'Class'
Supports single inheritance only
There are no visibilities for Class Signature
There are no visibilities for Class Attributes
Tagged values supported:
Heredoc
Tagged value = '<<<', with value = 'true'
Will return anything typed in the initial value with Heredoc string type.
For example:
$str = <<<EOD Example of string spanning multiple lines using heredoc syntax. EOD;
There are no visibilities for Class Operations
Tagged values supported:
Parameter initial value
Tagged value= 'initval', with value = (specified parameter initial value).
For example:
class ConstructorCart extends Cart { function ConstructorCart($item = "10", $num = 1) { $this->add_item ($item, $num); } }
Parameter passed by reference
Tagged value='&' with value='true' in the parameter signature.
For example:
<?php function foo (&$var) { $var++; } $a=5; foo ($a); // $a is 6 here ?>
Function returns a reference
Tagged value='&' with value='true' in the operation signature.
For example:
<?php function &returnsReference() { return $someref; } $newref =& returnsReference(); ?>