for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the jquery-datatables-bundle package.
*
* (c) 2018 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\JQuery\DataTablesBundle\Model;
use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface;
use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesMappingInterface;
/**
* DataTables mapping.
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\JQuery\DataTablesBundle\Model
class DataTablesMapping implements DataTablesMappingInterface {
* Column.
* @var string|null
private $column;
* Parent.
* @var DataTablesColumnInterface|null
private $parent;
* Prefix.
private $prefix;
* Constructor.
public function __construct() {
// NOTHING TO DO
}
* {@inheritDoc}
public function getColumn(): ?string {
return $this->column;
public function getParent(): ?DataTablesColumnInterface {
return $this->parent;
public function getPrefix(): ?string {
return $this->prefix;
public function setColumn(?string $column): DataTablesMappingInterface {
$this->column = $column;
return $this;
* Set the parent.
* @param DataTablesColumnInterface|null $parent The parent.
* @return DataTablesMappingInterface Returns this mapping.
public function setParent(?DataTablesColumnInterface $parent): DataTablesMappingInterface {
$this->parent = $parent;
public function setPrefix(?string $prefix): DataTablesMappingInterface {
$this->prefix = $prefix;