definedBy; $see = []; foreach ($object->tags as $tag) { /** @var $tag phpDocumentor\Reflection\DocBlock\Tag\SeeTag */ if (get_class($tag) == 'phpDocumentor\Reflection\DocBlock\Tag\SeeTag') { $ref = $tag->getReference(); if (strpos($ref, '://') === false) { $ref = '[[' . $ref . ']]'; } $see[] = rtrim(\yii\apidoc\helpers\ApiMarkdown::process($ref . ' ' . $tag->getDescription(), $type, true), ". \r\n"); } } if (empty($see)) { return; } elseif (count($see) == 1) { echo '

See also ' . reset($see) . '.

'; } else { echo '

See also:

'; }