Il 23/05/21 23:21, fmigliori ha scritto:
Allora spiegatemi questo.
https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.uses.pkg.html
"The @uses tag automatically creates a virtual @usedby tag in the other
documentation that links to the documentation containing the @uses tag.
In other words, it is exactly like @see, except a return link is added
automatically."
Facciamo qualche prova?
$ cat src.php
<?php
class Simona {
/**
* @uses Macchina::guida()
*/
static function parte() {
Macchina:guida();
}
}
class Macchina {
static function guida() {
}
}
$ phpdoc -f src.php -t docs/
phpDocumentor v3.0.0
Parsing files... blablabla...
$ grep -iq 'macchina::guida' docs/classes/Simona.html || echo INESISTEMTE
$ grep -iq 'simona::parte' docs/classes/Macchina.html || echo INESISTEMTE
INESISTEMTE
Come vedete, alla fine c'è un problema.
Il file docs/classes/Macchina.html dovrebbe contenere qualcosa di simile
public static guida()
usedby
simona::parte
ma risulta inesistente.
Perchè?
PS
Per capirci meglio ecco un paio di schermate di quello che ha generato
phpdoc:
https://pasteboard.co/K2qMZS2.png (Simona)
https://pasteboard.co/K2qOH6f.png (Macchina)
PS
Però cercate di impegnarvi per rispondere, e possibilmente fate delle prove.