Tweak inhereting

This commit is contained in:
Barry vd. Heuvel
2014-08-06 12:41:20 +02:00
parent f29e6037c0
commit 27ffcb883c
+3 -1
View File
@@ -20,8 +20,10 @@ namespace <?= $namespace == '__root' ? '' : $namespace ?>{
<?= trim($method->getDocComment()) ?> <?= trim($method->getDocComment()) ?>
public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>){ public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>){<?php if($method->getDeclaringClass() !== $method->getRoot()): ?>
//Method inherited from <?= $method->getDeclaringClass() ?> //Method inherited from <?= $method->getDeclaringClass() ?>
<?php endif; ?>
<?= $method->shouldReturn() ? 'return ': '' ?><?= $method->getRoot() ?>::<?= $method->getName() ?>(<?= $method->getParams() ?>); <?= $method->shouldReturn() ? 'return ': '' ?><?= $method->getRoot() ?>::<?= $method->getName() ?>(<?= $method->getParams() ?>);
} }