Altax\Module\Task\Resource\RuntimeTask::getInput PHP Method

getInput() public method

public getInput ( )
    public function getInput()
    {
        return $this->input;
    }

Usage Example

Example #1
0
 public function testSetAndGetInput()
 {
     $runtimeTask = new RuntimeTask(null, $this->definedTask, $this->input, $this->output);
     $this->assertSame($this->input, $runtimeTask->getInput());
     $input = new ArrayInput(array("command" => "test2"));
     $runtimeTask->setInput($input);
     $this->assertSame($input, $runtimeTask->getInput());
     $this->assertNotSame($this->input, $runtimeTask->getInput());
 }