예제 #1
0
파일: Json.php 프로젝트: mfn/php-analyzer
 /**
  * @param Report $report
  * @return string
  */
 public function formatReport(Report $report)
 {
     return json_encode($report->toArray(), $this->options);
 }
예제 #2
0
 public function toArray()
 {
     return ['class' => $this->class->getName(), 'methods' => array_map(function (ParsedMethod $cam) {
         return $cam->getClass()->getName() . '::' . $cam->getMethod()->name . '()';
     }, $this->methods)] + parent::toArray();
 }