Я попробовал следующее:
/*
* 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 не найден.
Любые идеи о том, как заставить это работать в PHP NetBeans?
ОБНОВЛЕНИЕ:
Ниже приведен обновленный синтаксис, который будет работать в 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) {