phpdoc

    2熱度

    1回答

    我使用PhpStorm 2016.2.1 IDE。我有一個類型數組(所有成員將是相同的,已知的類),我希望IDE知道類型,所以我可以通過自動完成/智能感知幫助我。 class MyClass{ /** * @var array */ public $userArray; public addUser($uid){ $this->$userArr

    2熱度

    2回答

    我不得不做出一個自定義模板(從responsiv-twig擴展)爲phpDocumentor的一年前 現在用的phpDocumentor的新版本。我不能用這個 我也嘗試了一個乾淨的(responsive-twig)模板從phpDocumentor.phar複製到一個目錄下我成爲這兩種情況下以下錯誤消息:。 Preparing template "/Users/rov/Documents/phpSt

    0熱度

    1回答

    在下面的代碼中,@return加下劃線爲紅色。我希望它能夠返回一個接口,因爲這是所有不同的供應商適配器實現的。 /** * VendorFactory constructor. * @param Model $model * @return \Traders\Interfaces\VendorAdapterInterface */ public function __construct(

    1熱度

    1回答

    假設我們有在PHP abstract class Entity {} abstract class RealEntity extends Entity {} abstract class PseudoEntity extends Entity {} 以下繼承鏈和一堆該鏡像相同繼承鏈的其他類的 abstract class EntitySerializer { /** *

    3熱度

    1回答

    是否可以鏈接到另一個方法/類/屬性/等。在我的項目裏面內嵌@deprecated標籤?像這樣: /** * Method description * @deprecated 1.0 Reason for deprecation, use {@link newMethod()} instead! * @param string $str * @param string|null $str2

    0熱度

    1回答

    是否有可能使用PHPDoc的聲明protected或private類@proptery? /** * Class Node * @package app\models * @property string $name */ class Node { }

    0熱度

    1回答

    是否可以在自動完成列表中顯示受保護的成員? 例如: class Foo { protected $bar; public function __get($name) { return $this->$name; } } $foo = new Foo(); $foo-> // display autocomplete list with bar 我用PhpStorm

    1熱度

    2回答

    我有多個要爲某個功能添加的待辦事項。 將它們添加到phpDoc註釋塊中的正確方法是什麼? 我知道我應該使用@todo標記。 但我不確定是否應該爲每個項目使用一個@todo標記,或者對整個列表使用一個@todo標記。

    0熱度

    1回答

    所以我有一個性狀像如下: trait RepositoryTrait { /** * Find a model by its primary key. * * @param int $id * @param array $columns * @return \Illuminate\Database\Eloquent\Model|null

    0熱度

    1回答

    我知道它可以指向一個方法,但是如果我想從其他文件引用一個函數? E.g: /** * @see fn_name() */ 是確定的? 我可以在其他函數裏面使用這個標籤嗎?