Wrap conditional into a function or not represent it at all in a sequence diagram?
问题 I've this PHP controller class (belongs to Symfony2 bundle): class ReptoolController extends PageController { // ... private function _get($request, $action, $case) { $app_id = $this->getRequested('app_id'); if( ( $repappConfig = $this->getDoctrine()->getRepository('PDOneBundle:RepappConfig')->findOneBy(array("app_id"=>$app_id))) ) { $current_timestamp = new \DateTime(date('Y-m-d')); if($repappConfig->getExpireDate()) $expire_date = $repappConfig->getExpireDate()->getTimestamp(); else { $temp