%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emtnaeewxm/www/vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/
Upload File :
Create Path :
Current File : /home/emtnaeewxm/www/vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/ItemsEvent.php

<?php

namespace Knp\Component\Pager\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * Specific Event class for paginator
 */
class ItemsEvent extends Event
{
    /**
     * A target being paginated
     *
     * @var mixed
     */
    public $target;

    /**
     * List of options
     *
     * @var array
     */
    public $options;

    /**
     * Items result
     *
     * @var mixed
     */
    public $items;

    /**
     * Count result
     *
     * @var integer
     */
    public $count;

    private $offset;
    private $limit;
    private $customPaginationParams = array();

    public function __construct($offset, $limit)
    {
        $this->offset = $offset;
        $this->limit = $limit;
    }

    public function setCustomPaginationParameter($name, $value)
    {
        $this->customPaginationParams[$name] = $value;
    }

    public function getCustomPaginationParameters()
    {
        return $this->customPaginationParams;
    }

    public function unsetCustomPaginationParameter($name)
    {
        if (isset($this->customPaginationParams[$name])) {
            unset($this->customPaginationParams[$name]);
        }
    }

    public function getLimit()
    {
        return $this->limit;
    }

    public function getOffset()
    {
        return $this->offset;
    }
}

Zerion Mini Shell 1.0