36 public function init($hasManyToOne,$hasOneToMany){
46 $reflect=new \ReflectionClass($this->
class);
49 if ($yumlAnnot!==
false){
50 if(isset($yumlAnnot[
"color"])){
51 $color=
"{bg:".$yumlAnnot[
"color"].
"}";
53 if(isset($yumlAnnot[
"note"])){
54 $this->note=$yumlAnnot[
"note"];
57 $parts=[$reflect->getShortName()];
59 if($this->displayProperties){
65 $propertyName=$property->getName();
67 if($this->displayPropertiesTypes){
68 if(\array_key_exists($propertyName, $types)){
72 if(\array_search($propertyName, $prikeys)!==
false){
80 if($this->displayMethods){
82 $methods=$reflect->getMethods();
83 foreach ($methods as $method){
85 if($this->displayMethodsParams){
88 $methodName=$method->getName();
90 if($method->hasReturnType()){
100 if(isset($this->note)){
103 $this->parseResult=$result;
108 $reflect=new \ReflectionClass(
$class);
109 return $reflect->getShortName();
116 $this->oneToManys[$member]=$array[
"className"];
127 if(isset($joinColumn[
"className"])){
128 $this->manyToOne[$member]=$joinColumn[
"className"];
146 foreach ($relations as $model){
149 return $yumlRelations;
153 return "-[note:".$this->note.
"]";
158 $parameters=$method->getParameters();
159 foreach ($parameters as $parameter){
160 $v=$parameter->getName();
161 if($parameter->hasType()){
171 if($property->isPublic()){
173 }elseif($property->isProtected()){
190 $result=[$this->
parse()];
191 if($this->displayAssociations){
static getAnnotationInfo($class, $keyAnnotation)
setDisplayAssociations($displayAssociations)
static setMethodVariables($values)
getShortClassName($class)
setDisplayProperties($displayProperties)
setDisplayMethods($displayMethods)
static getAnnotationInfoMember($class, $keyAnnotation, $member)
static $parameterSeparator
static $parameterTypeSeparator
$displayAssociationClassProperties
getMethodParameters(\ReflectionMethod $method)
static setClassContent($content)
static getFieldTypes($className)
_getYumlRelationsType($relations, $branche)
__construct($class, $displayProperties=true, $displayAssociations=true, $displayMethods=false, $displayMethodsParams=false, $displayPropertiesTypes=false, $displayAssociationClassProperties=false)
static getKeyFields($instance)
static setPropertyVariables($values)
init($hasManyToOne, $hasOneToMany)