Files
Phraseanet/lib/Alchemy/Phrasea/TaskManager/Job/JobData.php
Romain Neutron b9fc068a29 Add JobData
2013-10-29 18:41:40 +01:00

45 lines
788 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2013 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\TaskManager\Job;
use Alchemy\Phrasea\Application;
use Alchemy\TaskManager\JobDataInterface;
use Entities\Task;
class JobData implements JobDataInterface
{
private $app;
private $task;
public function __construct(Application $app, Task $task)
{
$this->app = $app;
$this->task = $task;
}
/**
* @return Application
*/
public function getApplication()
{
return $this->app;
}
/**
* @return Task
*/
public function getTask()
{
return $this->task;
}
}