for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace T4web\Migrations\Version;
class Version
{
const TABLE_NAME = 'migration_version';
/**
* @var int
*/
protected $id;
protected $version;
public function exchangeArray($data)
foreach (array_keys(get_object_vars($this)) as $property) {
$this->{$property} = (isset($data[$property])) ? $data[$property] : null;
}
* @return int
public function getId()
return $this->id;
public function getVersion()
return $this->version;