for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Folk\Entities;
use Folk\Admin;
/**
* Base class extended by all entities.
*/
abstract class AbstractEntity implements EntityInterface
{
protected $admin;
protected $name;
public $title;
public $description;
* {@inheritdoc}
public function __construct($name, Admin $admin)
$this->admin = $admin;
$this->name = $name;
}
public function getName()
return $this->name;
public function getLabel($id, array $data)
return current($data);