Download models/Category.php from chartManD/turitezo: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/chartManD/turitezo/resolve/main/models/Category.php
- Command line
-
hf download hf://spaces/chartManD/turitezo/models/Category.php
-
curl -L -o Category.php https://huggingface.co/spaces/chartManD/turitezo/resolve/main/models/Category.php
477 Bytes
| class Category | |
| { | |
| private $id_category; | |
| private $name_category; | |
| public function __construct($id, $name) | |
| { | |
| $this->id_category = !$id ? null : $id; | |
| $this->name_category = $name; | |
| } | |
| public function getAtributs() : array | |
| { | |
| return ["id_categoria" => $this->id_category, "nombre_categoria" => $this->name_category]; | |
| } | |
| public function getNameCategory() : string|null | |
| { | |
| return $this->name_category; | |
| } | |
| } |