/** * @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; }
/** * @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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * @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; }