/**
  * @return Description
  */
 public static function buildDescription()
 {
     if (DescriptionRegistry::hasDescription(__CLASS__)) {
         return DescriptionRegistry::getDescription(__CLASS__);
     }
     $desc = new Description('DateTimeCollection', NativeType::COLLECTION, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Esempio n. 2
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;
 }
Esempio n. 3
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('String', NativeType::STRING, false);
     DescriptionRegistry::registerDescriptionFor(__CLASS__, $desc);
     return $desc;
 }
Esempio n. 4
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;
 }
Esempio n. 5
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;
 }