3
我有一個類的公共方法,我想記錄該方法可接受的可用字符串值。請問這是可以接受的:phpDocumentor如何記錄字符串參數的可用選項
/**
* Set size of photos
*
* @param string $size can be one of these options: url_sq, url_t, url_s, url_m, url_o
* @return void
*/
public function setSize($size){
$this->_size = $size;
}
非常感謝,並且非常喜歡使用常量來提供更具描述性和易於記憶的解決方案 – Globalz