【问题标题】:phpdoc keeps telling me my page-level docblock is not presentphpdoc 一直告诉我我的页面级文档块不存在
【发布时间】:2013-02-19 22:01:12
【问题描述】:

PHPDocumenter 一直告诉我我的文件中没有我的页面级文档块,我在线阅读了几页文档以使其工作但仍然无法正常工作,有人知道出了什么问题吗?

<?php
namespace Activis\Catalog\Model;

/**
* This file represents the factory for the domain object Product for the Activis catalog.
* 
* For now, this factory is simple and abstract but will slowly change into a non-static set of factory functions
* The domain model for this object is \Activis\Catalog\Model\Product
*
* @category Domain model factory
* @package  Activis.Catalog.Model
* @author   Mathieu Dumoulin
* @license  LGPL v3
* @link     http://activis.ca/
* @todo     Change the methods in the factory to not be abstract and require an instance of this class
*/
/**
* Declares the catalog's product's domain model factory
* 
* @abstract
* @static
*/
abstract class ProductFactory
{
}

【问题讨论】:

  • 不应该放在namespace前面吗?
  • 我明天回去工作时试试,可以吗
  • @dev-null-dweller 就是这样,创建一个答案,这样我就可以给你应有的信任!

标签: php phpdoc


【解决方案1】:

页面级文档块应该放在文件顶部,在命名空间声明之前

【讨论】:

    猜你喜欢
    • 2017-01-16
    • 1970-01-01
    • 2014-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多