📜  Builder Pattern Method Chaining 2 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:46.530000             🧑  作者: Mango

代码示例1
public function index(Request $request)
{
    $entries = (new ReportService())
        ->setYear(2020)
        ->getTransactionReport($request->input('project'));

    // ... Other code