| 1: | <?php |
| 2: | |
| 3: | namespace LaravelUi5\Core; |
| 4: | |
| 5: | use LaravelUi5\Core\Ui5\Contracts\Ui5LibraryInterface; |
| 6: | use LaravelUi5\Core\Enums\ArtifactType; |
| 7: | use LaravelUi5\Core\Traits\HasAssetsTrait; |
| 8: | use LaravelUi5\Core\Ui5\Contracts\Ui5ModuleInterface; |
| 9: | |
| 10: | class CoreLibrary implements Ui5LibraryInterface |
| 11: | { |
| 12: | use HasAssetsTrait; |
| 13: | |
| 14: | public function __construct(protected Ui5ModuleInterface $module) |
| 15: | { |
| 16: | } |
| 17: | |
| 18: | public function getModule(): ?Ui5ModuleInterface |
| 19: | { |
| 20: | return $this->module; |
| 21: | } |
| 22: | |
| 23: | public function getSlug(): string |
| 24: | { |
| 25: | return $this->module->getSlug(); |
| 26: | } |
| 27: | |
| 28: | public function getType(): ArtifactType |
| 29: | { |
| 30: | return ArtifactType::Library; |
| 31: | } |
| 32: | |
| 33: | public function getNamespace(): string |
| 34: | { |
| 35: | return 'com.laravelui5.core'; |
| 36: | } |
| 37: | |
| 38: | public function getVersion(): string |
| 39: | { |
| 40: | return '1.0.0'; |
| 41: | } |
| 42: | |
| 43: | public function getTitle(): string |
| 44: | { |
| 45: | return 'Laravel Ui5 Core Library'; |
| 46: | } |
| 47: | |
| 48: | public function getDescription(): string |
| 49: | { |
| 50: | return 'Takes care of the hard parts of integrating UI5 with Laravel: secure CSRF handling, session-aware fetch calls, and a clean way to connect your UIComponent to a backend service—ready to use, no hassle.'; |
| 51: | } |
| 52: | |
| 53: | public function getVendor(): string |
| 54: | { |
| 55: | return 'Pragmatiqu IT GmbH'; |
| 56: | } |
| 57: | } |
| 58: | |