for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bluz Framework Component
*
* @copyright Bluz PHP Team
* @link https://github.com/bluzphp/framework
*/
declare(strict_types=1);
namespace Bluz\Controller\Mapper;
* Link
* @package Bluz\Controller\Mapper
* @author Anton Shevchuk
class Link
{
* @var string
protected $module;
protected $controller;
protected $acl;
* @var array
protected $fields = [];
* Constructor of Link
* @param string $module
* @param string $controller
public function __construct(string $module, string $controller)
$this->setModule($module);
$this->setController($controller);
}
* Set ACL privilege
* @param string $acl
* @return Link
public function acl(string $acl): Link
$this->setAcl($acl);
return $this;
* Set filters for data
* @param array $fields
public function fields(array $fields): Link
$this->setFields($fields);
* @return string
public function getModule(): ?string
return $this->module;
protected function setModule(string $module): void
$this->module = $module;
public function getController(): ?string
return $this->controller;
protected function setController(string $controller): void
$this->controller = $controller;
* @return string|null
public function getAcl(): ?string
return $this->acl;
protected function setAcl(string $acl): void
$this->acl = $acl;
* @return array
public function getFields(): array
return $this->fields;
* Setup data filters
protected function setFields(array $fields): void
$this->fields = $fields;