Kentico/delivery-sdk-php

View on GitHub
src/KenticoCloud/Delivery/Models/Taxonomies/TaxonomiesResponse.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
/**
 * Represents a content item.
 */

namespace KenticoCloud\Delivery\Models\Taxonomies;

/**
 * Class TaxonomiesResponse
 * @package KenticoCloud\Delivery\Models\Taxonomies
 */
class TaxonomiesResponse
{
    /**
     * Returns an array of taxonomy terms.
     * @var null
     */
    public $taxonomies = null;
    
    /**
     * Gets data about the page size, current page, etc.
     * @var null
     */
    public $pagination = null;

    /**
     * TaxonomiesResponse constructor.
     * @param $taxonomies Array of taxonomy terms.
     * @param $pagination Pagination information (size, offset, etc.)
     */
    public function __construct($taxonomies, $pagination)
    {
        $this->taxonomies = $taxonomies;
        $this->pagination = $pagination;
        return $this;
    }
}