for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace UniMan\Core\DataManager;
abstract class AbstractDataManager implements DataManagerInterface
{
/**
* @var array list of messages in format flash message => type of flash message (info, success, warning, danger)
*/
protected $messages = [];
* Implement this method if permission canDeleteItem is true
* @param string $type
* @param string $table
* @param string $item
* @return boolean|null
* @see DataManagerInterface
public function deleteItem($type, $table, $item)
return null;
}
* Implement this method if permission canDeleteTable is true
public function deleteTable($type, $table)
* Implement this method if permission canDeleteDatabase is true
* @param string $database
public function deleteDatabase($database)
* Implement this method if permission canExecuteCommands is true
* @param string $commands
* @return array|null
public function execute($commands)
* @return array
final public function getMessages()
return $this->messages;
* add message to list of messages
* @param string $message
final protected function addMessage($message, $type = 'info')
$this->messages[$message] = $type;