for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oc\Translation;
class TranslationStruct
{
/**
* @var int
*/
public $identifier;
* @var string
public $sourceString;
public $comment;
public $de;
public $fr;
public $nl;
public $es;
public $pl;
public $it;
public $ru;
public function fromCsvArray(array $data)
$this->identifier = (int) $data['Identifier'];
$this->sourceString = $data['SourceString'];
$this->comment = $data['Comment'];
$this->de = $data['DE'];
$this->fr = $data['FR'];
$this->nl = $data['NL'];
$this->es = $data['ES'];
$this->pl = $data['PL'];
$this->it = $data['IT'];
$this->ru = $data['RU'];
return $this;
}
public function toArray()
return get_object_vars($this);