У меня есть это для моего класса объектов и класса API. Я могу позвонить по почте, не отправляя task_list_id
или display_order
. Пока я просто передаю title
, он вызывает метод.
class BaseTaskObj
{
/// @var int $task_list_id The SQL ident of the Task List to use for the Task. {@min 1}{@required true}
public $task_list_id;
}
class PostTaskObj extends BaseTaskObj
{
/// @var int $assigned_id The SQL ident of the Person who this task is assigned to {@min 1}{@required false}
public $assigned_id;
}
class MyTaskAPI {
/**
* Creates a new Task associated with an existing task list.
*
* @param PostTaskObj $info The details of the Task object to create. {@required title, display_order}
*
* @status 201
*
* @return int The SQL ident of the newly created Task
*/
function post(PostTaskObj $info) {
}
}
compound statements
, как в примере 2. - person Arul Kumaran   schedule 03.02.2017