for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kwkm\MkLiveStatusClient;
/**
* Class Column
*
* @package Kwkm\MkLiveStatusClient
* @author Takehiro Kawakami <[email protected]>
* @license MIT
*/
class Column
{
* @var array
private $columns;
* Column constructor.
* @param array $columns カラム名
public function __construct($columns = array())
$this->columns = $columns;
}
* Add column
* @param string $column カラム名
* @return $this
public function add($column)
$this->columns[] = $column;
return $this;
* Delete column
public function delete($column)
$index = array_search($column, $this->columns);
if ($index !== null) {
unset($this->columns[$index]);
* Get column
* @return array カラム名
public function get()
return $this->columns;