1
0
Fork 0

Add IOInterface::isDecorated()

pull/516/merge
Jordi Boggiano 2012-04-26 14:54:34 +02:00
parent 540f9a09b2
commit 66a202083e
3 changed files with 23 additions and 0 deletions

View File

@ -55,6 +55,14 @@ class ConsoleIO implements IOInterface
return $this->input->isInteractive(); return $this->input->isInteractive();
} }
/**
* {@inheritDoc}
*/
public function isDecorated()
{
return $this->output->isDecorated();
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -33,6 +33,13 @@ interface IOInterface
*/ */
function isVerbose(); function isVerbose();
/**
* Is this output decorated?
*
* @return Boolean
*/
function isDecorated();
/** /**
* Writes a message to the output. * Writes a message to the output.
* *

View File

@ -35,6 +35,14 @@ class NullIO implements IOInterface
return false; return false;
} }
/**
* {@inheritDoc}
*/
public function isDecorated()
{
return false;
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */