如何在 Netbeans PHP 中为我的函数添加文档?
2022-08-30 14:10:20
我尝试了以下方法,
/*
* addRelationship
*
* Adds a relationship between two entities using the given relation type.
*
* @param fromKey the original entity
* @param toKey the referring entity
* @param relationTypeDesc the type of relationship
*/
function addRelationship($fromKey, $toKey, $relationTypeDesc) {
$relationTypeKey = $this->getRelationTypeKey($relationTypeDesc);
但是,当我试图在另一个地方使用它时,它说PHPDoc没有找到。
关于如何让它在NetBeans PHP中工作的任何想法?
更新:
以下是在 NetBeans PHP 中可用的更新语法 -
/**
* addRelationship
*
* Adds a relationship between two entities using the given relation type.
*
* @param integer $fromKey the original entity
* @param integet $toKey the referring entity
* @param string $relationTypeDesc the type of relationship
*/
function addRelationship($fromKey, $toKey, $relationTypeDesc) {