Skip to content
Snippets Groups Projects
Category.php 1.02 KiB
Newer Older
  • Learn to ignore specific revisions
  • /**
     * @copyright  2020 Podlibre
     * @license    https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
     * @link       https://castopod.org/
     */
    
    use App\Models\CategoryModel;
    
    /**
     * @property int $id
     * @property int $parent_id
     * @property Category|null $parent
     * @property string $code
     * @property string $apple_category
     * @property string $google_category
     */
    
    class Category extends Entity
    {
    
            'parent_id' => '?integer',
    
            'apple_category' => 'string',
            'google_category' => 'string',
        ];
    
        /**
         * @noRector ReturnTypeDeclarationRector
         */
    
            return (new CategoryModel())->getCategoryById($this->parent_id);