for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleMapper;
class CustomStructure implements Structure
{
/** @var array */
protected $data = [];
/**
* Add row class to table
* @param string $table
* @param string $class
* @return CustomStructure
*/
public function addActiveRowClass($table, $class)
$this->data[$table]['row'] = $class;
return $this;
}
* Add selection class to table
public function addSelectionClass($table, $class)
$this->data[$table]['selection'] = $class;
* Fetch row class by table
* @return string
public function getActiveRowClass($table)
return isset($this->data[$table]['row'])
? $this->data[$table]['row']
: ActiveRow::class;
* Fetch selection class by table
public function getSelectionClass($table)
return isset($this->data[$table]['selection'])
? $this->data[$table]['selection']
: Selection::class;