Esempio n. 1
0
<?php

/**
 * Fixin Framework
 *
 * Class, interface, and trait lister
 *
 * @copyright  Copyright (c) 2016 Attila Jenei
 */
use Fixin\Support\VariableInspector;
?>
<td class="Parameter Type">
    <?php 
echo ($class = $parameter->getClass()) ? $helper->reflectionLink($class) : $parameter->getType() ?? $docParameters[$parameter->getName()] ?? '';
?>
</td>
<td class="Parameter Name">
    <?php 
echo ($parameter->isVariadic() ? '...' : '') . ($parameter->isPassedByReference() ? '&' : '') . htmlspecialchars('$' . $parameter->getName());
?>
</td>
<td class="Parameter Value"><?php 
echo $parameter->isOptional() && $parameter->isDefaultValueAvailable() ? VariableInspector::valueInfo($parameter->getDefaultValue()) : '';
?>
</td>
Esempio n. 2
0
 public function __toString() : string
 {
     return Ground::debugText($this->text) . Ground::debugText(VariableInspector::arrayInfo($this->parameters));
 }
Esempio n. 3
0
                    echo $visibility;
                    ?>
                                            <?php 
                    echo $property->isStatic() ? 'static' : '';
                    ?>
                                        </td>
                                        <td><?php 
                    echo $helper->commentVar($property);
                    ?>
</td>
                                        <td class="Name" colspan="4">$<?php 
                    echo htmlspecialchars($property->getName());
                    ?>
</td>
                                        <td class="Value"><?php 
                    echo VariableInspector::valueInfo($defaultValues[$property->getName()] ?? null);
                    ?>
</td>
                                        <td class="Comment"><?php 
                    echo $helper->commentText($property);
                    ?>
</td>
                                    </tr>
                                <?php 
                }
                ?>
                            <?php 
            }
            ?>
                            <tr class="Separator">
                                <td class="Tab"></td>