38 public function init($hasManyToOne,$hasOneToMany){
48 $reflect=new \ReflectionClass($this->
class);
51 if ($yumlAnnot!==
false){
52 if(isset($yumlAnnot[
"color"])){
53 $color=
"{bg:".$yumlAnnot[
"color"].
"}";
55 if(isset($yumlAnnot[
"note"])){
56 $this->note=$yumlAnnot[
"note"];
59 $parts=[$reflect->getShortName()];
61 if($this->displayProperties){
67 $propertyName=$property->getName();
69 if($this->displayPropertiesTypes){
70 if(\array_key_exists($propertyName, $types)){
74 if(\array_search($propertyName, $prikeys)!==
false){
82 if($this->displayMethods){
84 $methods=$reflect->getMethods();
85 foreach ($methods as $method){
87 if($this->displayMethodsParams){
90 $methodName=$method->getName();
92 if($method->hasReturnType()){
102 if(isset($this->note)){
105 $this->parseResult=$result;
110 $reflect=new \ReflectionClass(
$class);
111 return $reflect->getShortName();
118 $this->oneToManys[$member]=$array[
"className"];
129 if(isset($joinColumn[
"className"])){
130 $this->manyToOne[$member]=$joinColumn[
"className"];
148 foreach ($relations as $model){
151 return $yumlRelations;
155 return "-[note:".$this->note.
"]";
160 $parameters=$method->getParameters();
161 foreach ($parameters as $parameter){
162 $v=$parameter->getName();
163 if($parameter->hasType()){
173 if($property->isPublic()){
175 }elseif($property->isProtected()){
192 $result=[$this->
parse()];
193 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)