Define Interface for List classes. Implement a trait base for the lists. Fix sort by current user at Review and Reassign lists.
28 lines
427 B
PHP
28 lines
427 B
PHP
<?php
|
|
|
|
/**
|
|
* The list can create and update records.
|
|
*
|
|
*/
|
|
interface ListCreateUpdateInterface
|
|
{
|
|
|
|
/**
|
|
* Create an application record into list.
|
|
*
|
|
* @param type $data
|
|
*
|
|
* @throws Exception
|
|
*/
|
|
public function create($data);
|
|
|
|
/**
|
|
* Update an application record from list.
|
|
*
|
|
* @param type $data
|
|
*
|
|
* @throws Exception
|
|
*/
|
|
public function update($data);
|
|
}
|