for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Coco\SourceWatcher\Core\Transformers;
use Coco\SourceWatcher\Core\SourceWatcherException;
class JavaTransformerArgument
{
private string $type;
private string $columnValue;
private string $stringValue;
private string $mixedKey;
private string $mixedVal;
/**
* JavaTransformerArgument constructor.
*
* @param array $options
* @throws SourceWatcherException
*/
public function __construct ( array $options )
switch ( $options["type"] ) {
case JavaTransformerArgumentType::ARG_TYPE_COLUMN:
$this->columnValue = $options["columnValue"];
break;
case JavaTransformerArgumentType::ARG_TYPE_STRING:
$this->stringValue = $options["stringValue"];
case JavaTransformerArgumentType::ARG_TYPE_MIXED:
$this->mixedKey = $options["mixedKey"];
$this->mixedVal = $options["mixedVal"];
default:
throw new SourceWatcherException( "Type not supported" );
}
$this->type = $options["type"];
* @return mixed|string
public function getType () : string
return $this->type;
public function getColumnValue () : string
return $this->columnValue;
public function getStringValue () : string
return $this->stringValue;
public function getMixedKey () : string
return $this->mixedKey;
public function getMixedVal () : string
return $this->mixedVal;