<?php

namespace Flightzilla\Model\Ticket\Task;

use \Flightzilla\Model\Ticket\Type\Bug;
use \Flightzilla\Model\Ticket\Source\Bugzilla;
use \Flightzilla\Model\Resource\Human;


/**
 * The test-system should be updated
 *
 * @author Hans-Peter Buniat <hpbuniat@googlemail.com>
 * @copyright 2012-2013 Hans-Peter Buniat <hpbuniat@googlemail.com>
 * @license http://opensource.org/licenses/BSD-3-Clause
 * @version Release: @package_version@
 * @link https://github.com/hpbuniat/flightzilla
 */
class Testserver implements TaskInterface {

    /**
     * Name of the task
     *
     * @var string
     */
    const NAME = 'Testserver';

    /**
     * (non-PHPdoc)
     * @see TaskInterface::check()
     */
    public static function check(Bug $oTicket, Bugzilla $oTicketSource, Human $oUser) {
        return $oTicket->hasFlag(Bug::FLAG_TESTSERVER, Bugzilla::BUG_FLAG_REQUEST);
    }
}
