for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Namefy;
/**
* Class Name
* @package ByTIC\Namefy
*/
class Name
{
protected $resource;
protected $repository;
protected $model;
protected $controller;
* @return mixed
public function resource()
$this->checkProperty('resource');
return $this->resource;
}
* @param mixed $resource
public function setResource($resource): void
$this->resource = $resource;
public function repository()
$this->checkProperty('repository');
return $this->repository;
* @param mixed $repository
public function setRepository($repository): void
$this->repository = $repository;
public function model()
$this->checkProperty('model');
return $this->model;
* @param mixed $model
public function setModel($model): void
$this->model = $model;
public function controller()
$this->checkProperty('controller');
return $this->controller;
* @param mixed $controller
public function setController($controller): void
$this->controller = $controller;
* @param string $name
protected function checkProperty($name)
if (isset($this->{$name}) && $this->{$name} instanceof \Closure) {
$this->{$name} = ($this->{$name})();