EvilFreelancer/bookeo-api-php

View on GitHub
src/Models/ProductList.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bookeo\Models;

use Bookeo\Model;

/**
 * Class ProductList
 *
 * @codeCoverageIgnore
 * @package Bookeo\Models
 */
class ProductList extends Model
{
    /**
     * List of allowed fields
     *
     * @return array
     */
    public function allowed(): array
    {
        return [
            'info' => PaginationInfo::class, // [read-only]
            'data' => 'array[Product]',      // [read-only]
        ];
    }
}