for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rs\VersionEye\Output;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Sessions.
*
* @author Robert Schönthal <[email protected]>
*/
class Sessions extends BaseOutput
{
* output for show API.
* @param OutputInterface $output
* @param array $response
public function show(OutputInterface $output, array $response)
$this->printList($output,
['Fullname', 'API Token'],
['fullname', 'api_key'],
$response
);
}
* output for open API.
public function open(OutputInterface $output, $response)
$this->printBoolean($output, 'OK', 'FAIL', 'true' === $response); //response isnt an array oO
* output for close API.
public function close(OutputInterface $output, array $response)
$this->printBoolean($output, 'OK', 'FAIL', 'Session is closed now.' === $response['message']);