Ejemplo n.º 1
0
 /**
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description('StringCollection', NativeType::COLLECTION, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Ejemplo n.º 2
0
 /**
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description('Item Class', NativeType::STRING, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Ejemplo n.º 3
0
 /**
  * The description is cached in the internal description property
  *
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description('Integer', NativeType::INTEGER, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Ejemplo n.º 4
0
 /**
  * The description is cached in the internal description property
  *
  * Implement the method to build the description only once and only if it is requested
  *
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description("Boolean", NativeType::BOOLEAN, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Ejemplo n.º 5
0
 /**
  * The description is cached in the internal description property
  *
  * Implement the method to build the description only once and only if it is requested
  *
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description('DateTime', NativeType::DATETIME, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Ejemplo n.º 6
0
 /**
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description('Unknown', NativeType::UNKNOWN, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }