policy_id ?? null; if (isset($policy_id)) { return "/_slm/policy/$policy_id"; } return "/_slm/policy"; } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'GET'; } public function setPolicyId($policy_id): GetLifecycle { if (isset($policy_id) !== true) { return $this; } if (is_array($policy_id) === true) { $policy_id = implode(",", $policy_id); } $this->policy_id = $policy_id; return $this; } }