for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the phpflo/phpflo package.
*
* (c) Henri Bergius <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PhpFlo\Component;
use PhpFlo\Component;
/**
* Class Output
* @package PhpFlo\Component
* @author Henri Bergius <[email protected]>
class Output extends Component
{
public function __construct()
$this->inPorts()->add('in', ['datatype' => 'all', 'addressable' => true]);
$this->inPorts()->in->on('data', [$this, 'displayData']);
}
* @param mixed $data
public function displayData($data)
echo "{$data}\n";