- {if $constant->declaringClassName}
- {$constant->declaringClassName} |
- {$constant->name} |
+ {if $constant->getDeclaringClassName()}
+ {$constant->getDeclaringClassName()} |
+ {$constant->getName()} |
{else}
- {$constant->namespaceName} |
- {$constant->shortName} |
+ {$constant->getNamespaceName()} |
+ {$constant->getShortName()} |
{/if}
{foreach $constant->annotations[$annotation] as $description}
@@ -69,8 +69,8 @@
Properties summary
- {$property->declaringClassName} |
- ${$property->name} |
+ {$property->getDeclaringClassName()} |
+ ${$property->getName()} |
{foreach $property->annotations[$annotation] as $description}
{if $description}
@@ -84,8 +84,8 @@
Functions summary
- {$function->namespaceName} |
- {$function->shortName} |
+ {$function->getNamespaceName()} |
+ {$function->getShortName()} |
{foreach $function->annotations[$annotation] as $description}
{if $description}
@@ -105,7 +105,7 @@
{define classes}
|
- {$class->name} |
+ {$class->getName()} |
{foreach $class->annotations[$annotation] as $description}
{if $description}
diff --git a/src/class.latte b/src/class.latte
index 4555d79..211a453 100644
--- a/src/class.latte
+++ b/src/class.latte
@@ -1,35 +1,37 @@
{layout '@layout.latte'}
{var $active = 'class'}
-{block title}{if $class->deprecated}Deprecated {/if}{if $class->interface}Interface{elseif $class->trait}Trait{else}Class{/if} {$class->name}{/block}
+{block title}{if $class->isDeprecated()}Deprecated {/if}{if $class->isInterface()}Interface{elseif $class->isTrait()}Trait{else}Class{/if} {$class->getName()}{/block}
{block content}
- {if $class->interface}Interface{elseif $class->trait}Trait{else}Class{/if} {$class->shortName}
+ {if $class->isInterface()}Interface{elseif $class->isTrait()}Trait{else}Class{/if} {$class->getShortName()}
- {if $class->valid}
+ {if $class->isValid()}
-
- {$class|longDescription|noescape}
-
+ {if $class->getLongDescription()}
+
+ {$class|longDescription|noescape}
+
+ {/if}
-
+
-
- {if $item->documented}
- {last}{/last}{$item->name}{last}{/last}
- {else}{$item->name}{/if}
- {var $itemOwnInterfaces = $item->ownInterfaces}
+ {if $item->isDocumented()}
+ {last}{/last}{$item->getName()}{last}{/last}
+ {else}{$item->getName()}{/if}
+ {var $itemOwnInterfaces = $item->getOwnInterfaces()}
{if $itemOwnInterfaces} implements {foreach $itemOwnInterfaces as $interface}
- {$interface->name}{sep}, {/sep}
+ {$interface->getName()}{sep}, {/sep}
{/foreach}{/if}
- {var $itemOwnTraits = $item->ownTraits}
+ {var $itemOwnTraits = $item->getOwnTraits()}
{if $itemOwnTraits} uses {foreach $itemOwnTraits as $trait}
{if is_string($trait)}
{$trait} (not available)
{else}
- {$trait->name}{sep}, {/sep}
+ {$trait->getName()}{sep}, {/sep}
{/}
{/foreach}{/if}
@@ -37,7 +39,7 @@
{define children}
{foreach $children as $child}
- {$child->name}{sep}, {/sep}
+ {$child->getName()}{sep}, {/sep}
{/foreach}
{/define}
@@ -72,34 +74,35 @@
- {if !$class->interface && !$class->trait && ($class->abstract || $class->final)} {if $class->abstract}Abstract{else}Final{/if}{/if}
- {if $class->internal} PHP Extension: {$class->extension->name|firstUpper}{/if}
- {if $class->inNamespace()} Namespace: {$class->namespaceName|namespaceLinks|noescape} {/if}
- {if $class->inPackage()} Package: {$class->packageName|packageLinks|noescape} {/if}
+ {if !$class->isInterface() && !$class->isTrait() && ($class->isAbstract() || $class->isFinal())} {if $class->isAbstract()}Abstract{else}Final{/if}{/if}
+ {if $class->isInternal()} PHP Extension: {$class->extension->name|firstUpper}{/if}
+ {if $class->inNamespace()} Namespace: {$class->getNamespaceName()|namespaceLinks|noescape} {/if}
+ {if $class->inPackage()} Package: {$class->getPackageName()|packageLinks|noescape} {/if}
- {foreach $template->annotationSort($template->annotationFilter($class->annotations)) as $annotation => $values}
+ {var $filteredAnnotations = ($class->getAnnotations()|annotationFilter: [])}
+ {foreach $filteredAnnotations as $annotationItem => $values}
{foreach $values as $value}
- {$annotation|annotationBeautify}{if $value}:{/if}
- {$value|annotation:$annotation:$class|noescape}
+ {$annotationItem|annotationBeautify}{if $value}:{/if}
+ {$value|annotation:$annotationItem:$class|noescape}
{/foreach}
{/foreach}
- {if $class->internal}
+ {if $class->isInternal()}
Documented at php.net
{else}
- Located at {$class->fileName|relativePath}
+ Located at {$class->getFileName()|relativePath}
{/if}
- {var $ownMethods = $class->ownMethods}
- {var $ownMagicMethods = $class->ownMagicMethods}
+ {var $ownMethods = $class->getOwnMethods()}
+ {var $ownMagicMethods = $class->getOwnMagicMethods()}
{define method}
- |
- {var $annotations = $method->annotations}
+
+ {var $annotations = $method->getAnnotations()}
- {if !$class->interface && $method->abstract}abstract{elseif $method->final}final{/if} {if $method->protected}protected{elseif $method->private}private{else}public{/if} {if $method->static}static{/if}
+ {if !$class->isInterface() && $method->isAbstract()}abstract{elseif $method->isFinal()}final{/if} {if $method->isProtected()}protected{elseif $method->isPrivate()}private{else}public{/if} {if $method->isStatic()}static{/if}
{ifset $annotations['return']}{$annotations['return'][0]|typeLinks:$method|noescape}{/ifset}
{if $method->returnsReference()}&{/if}
@@ -107,16 +110,16 @@
|
- #
+ #
{block|strip}
- {if $class->internal}
- {$method->name}(
+ {if $class->isInternal()}
+ {$method->getName()}(
{else}
- {$method->name}(
+ {$method->getName()}(
{/if}
- {foreach $method->parameters as $parameter}
- {$parameter->typeHint|typeLinks:$method|noescape}
- {if $parameter->passedByReference}& {/if}${$parameter->name}{if $parameter->defaultValueAvailable} = {$parameter->defaultValueDefinition|highlightPHP:$class|noescape}{elseif $parameter->unlimited},…{/if}{sep}, {/sep}
+ {foreach $method->getParameters() as $parameter}
+ {$parameter->getTypeHint()|typeLinks:$method|noescape}
+ {if $parameter->isPassedByReference()}& {/if}${$parameter->getName()}{if $parameter->isDefaultValueAvailable()} = {$parameter->getDefaultValueDefinition()|highlightPHP:$class|noescape}{elseif $parameter->isUnlimited()},…{/if}{sep}, {/sep}
{/foreach}
){/block}
@@ -129,7 +132,7 @@
{$method|longDescription|noescape}
- {if !$class->deprecated && $method->deprecated}
+ {if !$class->isDeprecated() && $method->isDeprecated()}
Deprecated
{ifset $annotations['deprecated']}
@@ -142,12 +145,12 @@
{/ifset}
{/if}
- {if $method->parameters && isset($annotations['param'])}
+ {if $method->getParameters() && isset($annotations['param'])}
Parameters
- {foreach $method->parameters as $parameter}
- - ${$parameter->name}{if $parameter->unlimited},…{/if}
- - {$parameter->description|description:$method|noescape}
+ {foreach $method->getParameters() as $parameter}
+ - ${$parameter->getName()}{if $parameter->isUnlimited()},…{/if}
+ - {$parameter->getDescription()|description:$method|noescape}
{/foreach}
{/if}
@@ -170,27 +173,28 @@
{/ifset}
- {foreach $template->annotationSort($template->annotationFilter($annotations, array('deprecated', 'param', 'return', 'throws'))) as $annotation => $descriptions}
- {$annotation|annotationBeautify}
+ {var $filteredAnnotations = ($annotations|annotationFilter: ['deprecated', 'param', 'return', 'throws'])}
+ {foreach $filteredAnnotations as $annotationItem => $descriptions}
+ {$annotationItem|annotationBeautify}
{foreach $descriptions as $description}
{if $description}
- {$description|annotation:$annotation:$method|noescape}
+ {$description|annotation:$annotationItem:$method|noescape}
{/if}
{/foreach}
{/foreach}
- {var $overriddenMethod = $method->overriddenMethod}
+ {var $overriddenMethod = $method->getOverriddenMethod()}
{if $overriddenMethod}
Overrides
-
+
{/if}
- {var $implementedMethod = $method->implementedMethod}
+ {var $implementedMethod = $method->getImplementedMethod()}
{if $implementedMethod}
Implementation of
-
+
{/if}
|
@@ -204,23 +208,23 @@
{/foreach}
-
- Methods inherited from {$parentName}
+
-
- Methods used from {$traitName}
+
+ Methods used from {$traitName}
{foreach $methods as $data}
- {$data['method']->name}(){if $data['aliases']}(as {foreach $data['aliases'] as $alias}{$alias->name}(){sep}, {/sep}{/foreach}){/if}{sep}, {/sep}
+ {$data['method']->getName()}(){if $data['aliases']}(as {foreach $data['aliases'] as $alias}{$alias->getName()}(){sep}, {/sep}{/foreach}){/if}{sep}, {/sep}
{/foreach}
|
@@ -233,43 +237,43 @@
{/foreach}
-
- Magic methods inherited from {$parentName}
+
-
- Magic methods used from {$traitName}
+
+ Magic methods used from {$traitName}
{foreach $methods as $data}
- {$data['method']->originalName}(){if $data['aliases']}(as {foreach $data['aliases'] as $alias}{$alias->name}(){sep}, {/sep}{/foreach}){/if}{sep}, {/sep}
+ {$data['method']->originalName}(){if $data['aliases']}(as {foreach $data['aliases'] as $alias}{$alias->getName()}(){sep}, {/sep}{/foreach}){/if}{sep}, {/sep}
{/foreach}
|
- {var $ownConstants = $class->ownConstants}
+ {var $ownConstants = $class->getOwnConstants()}
Constants summary
-
- {var $annotations = $constant->annotations}
+
+ {var $annotations = $constant->getAnnotations()}
- {$constant->typeHint|typeLinks:$constant|noescape} |
+ {$constant->getTypeHint()|typeLinks:$constant|noescape} |
- {if $class->internal}
- {$constant->name}
+ {if $class->isInternal()}
+ {$constant->getName()}
{else}
- {$constant->name}
+ {$constant->getName()}
{/if}
@@ -280,12 +284,13 @@
{$constant|longDescription|noescape}
- {foreach $template->annotationSort($template->annotationFilter($annotations, array('var'))) as $annotation => $descriptions}
- {$annotation|annotationBeautify}
+ {var $filteredAnnotations = ($annotations|annotationFilter: ['var'])}
+ {foreach $filteredAnnotations as $annotationItem => $descriptions}
+ {$annotationItem|annotationBeautify}
{foreach $descriptions as $description}
{if $description}
- {$description|annotation:$annotation:$constant|noescape}
+ {$description|annotation:$annotationItem:$constant|noescape}
{/if}
{/foreach}
@@ -294,36 +299,36 @@
|
- #
- {$constant->valueDefinition|highlightValue:$class|noescape}
+ #
+ {$constant->getValueDefinition()|highlightValue:$class|noescape}
|
-
- Constants inherited from {$parentName}
+
{define property}
-
+
- {if $property->protected}protected{elseif $property->private}private{else}public{/if} {if $property->static}static{/if} {if $property->readOnly}read-only{elseif $property->writeOnly}write-only{/if}
- {$property->typeHint|typeLinks:$property|noescape}
+ {if $property->isProtected()}protected{elseif $property->isPrivate()}private{else}public{/if} {if $property->isStatic()}static{/if} {if $property->isReadOnly()}read-only{elseif $property->isWriteOnly()}write-only{/if}
+ {$property->getTypeHint()|typeLinks:$property|noescape}
|
- {if $class->internal}
- ${$property->name}
+ {if $class->isInternal()}
+ ${$property->getName()}
{else}
- ${$property->name}
+ ${$property->getName()}
{/if}
@@ -333,29 +338,30 @@
{$property|longDescription|noescape}
- {foreach $template->annotationSort($template->annotationFilter($property->annotations, array('var'))) as $annotation => $descriptions}
- {$annotation|annotationBeautify}
+ {var $filteredAnnotations = ($property->getAnnotations()|annotationFilter: ['var'])}
+ {foreach $filteredAnnotations as $annotationItem => $descriptions}
+ {$annotationItem|annotationBeautify}
{foreach $descriptions as $description}
{if $description}
- {$description|annotation:$annotation:$property|noescape}
+ {$description|annotation:$annotationItem:$property|noescape}
{/if}
{/foreach}
{/foreach}
|
-
+ |
- #
- {$property->defaultValueDefinition|highlightValue:$class|noescape}
+ #
+ {$property->getDefaultValueDefinition()|highlightValue:$class|noescape}
|
{/define}
- {var $ownProperties = $class->ownProperties}
- {var $ownMagicProperties = $class->ownMagicProperties}
+ {var $ownProperties = $class->getOwnProperties()}
+ {var $ownMagicProperties = $class->getOwnMagicProperties()}
Properties summary
@@ -364,23 +370,23 @@
{/foreach}
-
- Properties inherited from {$parentName}
+
-
- Properties used from {$traitName}
+
-
- Magic properties inherited from {$parentName}
+
-
- Magic properties used from {$traitName}
+
+ Magic properties used from {$traitName}
{foreach $properties as $property}
- ${$property->name}{sep}, {/sep}
+ ${$property->getName()}{sep}, {/sep}
{/foreach}
|
@@ -421,10 +427,10 @@
Documentation of this class could not be generated.
- Class was originally declared in {$class->fileName|relativePath} and is invalid because of:
+ Class was originally declared in {$class->getFileName()|relativePath} and is invalid because of:
- - Class was redeclared in {$reason->getSender()->getFileName()|relativePath}.
+ - Class was redeclared in {$reason->getSender()->getFileName()|relativePath}.
{/if}
diff --git a/src/constant.latte b/src/constant.latte
index 8552446..df6d293 100644
--- a/src/constant.latte
+++ b/src/constant.latte
@@ -1,22 +1,22 @@
{layout '@layout.latte'}
{var $active = 'constant'}
-{block title}{if $constant->deprecated}Deprecated {/if}Constant {$constant->name}{/block}
+{block title}{if $constant->isDeprecated()}Deprecated {/if}Constant {$constant->getName()}{/block}
{block content}
- Constant {$constant->shortName}
+ Constant {$constant->getShortName()}
- {if $constant->valid}
+ {if $constant->isValid()}
{$constant|longDescription|noescape}
- {if $constant->inNamespace()} Namespace: {$constant->namespaceName|namespaceLinks|noescape} {/if}
- {if $constant->inPackage()} Package: {$constant->packageName|packageLinks|noescape} {/if}
- {foreach $template->annotationSort($template->annotationFilter($constant->annotations, array('var'))) as $annotation => $values}
+ {if $constant->inNamespace()} Namespace: {$constant->getNamespaceName()|namespaceLinks|noescape} {/if}
+ {if $constant->inPackage()} Package: {$constant->getPackageName()|packageLinks|noescape} {/if}
+ {foreach $template->annotationFilter($constant->annotations, array('var')) as $annotation => $values}
{foreach $values as $value}
{$annotation|annotationBeautify}{if $value}:{/if}
{$value|annotation:$annotation:$constant|noescape}
@@ -24,19 +24,19 @@
{/foreach}
Located at
- {$constant->fileName|relativePath}
+ {$constant->getFileName()|relativePath}
- {var $annotations = $constant->annotations}
+ {var $annotations = $constant->getAnnotations()}
Value summary
- {$constant->typeHint|typeLinks:$constant|noescape} |
+ {$constant->getTypeHint()|typeLinks:$constant|noescape} |
{block|strip}
- {var $element = $template->resolveElement($constant->valueDefinition, $constant)}
- {if $element}{$constant->valueDefinition}{else}{$constant->valueDefinition|highlightValue:$constant|noescape} {/if}
+ {var $element = $template->resolveElement($constant->getValueDefinition(), $constant)}
+ {if $element}{$constant->getValueDefinition()}{else}{$constant->getValueDefinition()|highlightValue:$constant|noescape} {/if}
{/block} |
@@ -47,7 +47,7 @@
Documentation of this constant could not be generated.
- Constant was originally declared in {$constant->fileName|relativePath} and is invalid because of:
+ Constant was originally declared in {$constant->getFileName()|relativePath} and is invalid because of:
- Constant was redeclared in {$reason->getSender()->getFileName()|relativePath}.
diff --git a/src/function.latte b/src/function.latte
index 5797cf1..02b37ce 100644
--- a/src/function.latte
+++ b/src/function.latte
@@ -1,22 +1,22 @@
{layout '@layout.latte'}
{var $active = 'function'}
-{block title}{if $function->deprecated}Deprecated {/if}Function {$function->name}{/block}
+{block title}{if $function->isDeprecated()}Deprecated {/if}Function {$function->getName()}{/block}
{block content}
- Function {$function->shortName}
+ Function {$function->getShortName()}
- {if $function->valid}
+ {if $function->isValid()}
{$function|longDescription|noescape}
- {if $function->inNamespace()} Namespace: {$function->namespaceName|namespaceLinks|noescape} {/if}
- {if $function->inPackage()} Package: {$function->packageName|packageLinks|noescape} {/if}
- {foreach $template->annotationSort($template->annotationFilter($function->annotations, array('param', 'return', 'throws'))) as $annotation => $values}
+ {if $function->inNamespace()} Namespace: {$function->getNamespaceName()|namespaceLinks|noescape} {/if}
+ {if $function->inPackage()} Package: {$function->getPackageName()|packageLinks|noescape} {/if}
+ {foreach $template->annotationFilter($function->annotations, array('param', 'return', 'throws')) as $annotation => $values}
{foreach $values as $value}
{$annotation|annotationBeautify}{if $value}:{/if}
{$value|annotation:$annotation:$function|noescape}
@@ -24,20 +24,20 @@
{/foreach}
Located at
- {$function->fileName|relativePath}
+ {$function->getFileName()|relativePath}
- {var $annotations = $function->annotations}
+ {var $annotations = $function->getAnnotations()}
-
+
Parameters summary
-
- {$parameter->typeHint|typeLinks:$function|noescape} |
+
+ {$parameter->getTypeHint()|typeLinks:$function|noescape} |
{block|strip}
- {if $parameter->passedByReference}& {/if}${$parameter->name}{if $parameter->defaultValueAvailable} = {$parameter->defaultValueDefinition|highlightPHP:$function|noescape}{elseif $parameter->unlimited},…{/if}
+ {if $parameter->isPassedByReference()}& {/if}${$parameter->getName()}{if $parameter->isDefaultValueAvailable()} = {$parameter->getDefaultValueDefinition()|highlightPHP:$function|noescape}{elseif $parameter->isUnlimited()},…{/if}
{/block} |
- {$parameter->description|description:$function} |
+ {$parameter->getDescription()|description:$function} |
@@ -71,7 +71,7 @@
Documentation of this function could not be generated.
- Function was originally declared in {$function->fileName|relativePath} and is invalid because of:
+ Function was originally declared in {$function->getFileName()|relativePath} and is invalid because of:
- Function was redeclared in {$reason->getSender()->getFileName()|relativePath}.
diff --git a/src/tree.latte b/src/tree.latte
index 79a625b..2641f9b 100644
--- a/src/tree.latte
+++ b/src/tree.latte
@@ -16,18 +16,18 @@
{/if}
- {$reflectionName}
- {var $interfaces = $reflection->ownInterfaces}
+ {$reflectionName}
+ {var $interfaces = $reflection->getOwnInterfaces()}
{if $interfaces} implements {foreach $interfaces as $interface}
- {$interface->name}{sep}, {/sep}
+ {$interface->getName()}{sep}, {/sep}
{/foreach}{/if}
- {var $traits = $reflection->ownTraits}
+ {var $traits = $reflection->getOwnTraits()}
{if $traits}{if $interfaces} {/if} uses {foreach $traits as $trait}
{if is_string($trait)}
{$trait} (not available)
{else}
- {$trait->name}{sep}, {/sep}
+ {$trait->getName()}{sep}, {/sep}
{/}
{/foreach}{/if}
| |