<?php 

namespace NPS\Model;

use DateTime;
use NPS\Entity\AbstractUserQueryEntity;

/**
 * Represents a user query model object
 * @author Lukas Korinek 
 */
abstract class AbstractUserQuery implements IDomainObject
{

    /** @var AbstractUserQueryEntity $entity */
    protected $entity;

    public function __construct(AbstractUserQueryEntity $entity)
    {
        $this->entity = $entity;
    }

    /**
     * @inheritdoc
     */
    public function getId()
    {
        return $this->entity->getId();
    }
    
    /**
     * @inheritdoc
     */
    public function getEntity()
    {
        return $this->entity;
    }

    /**
     * Gets the query text content
     * @return string
     */
    public function getText()
    {
        return $this->entity->text;
    }

}

