<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
namespace Civi\CCase;
+/**
+ * Class Analyzer
+ *
+ * @package Civi\CCase
+ */
class Analyzer {
/**
* @var int
*/
private $indices;
+ /**
+ * @param $caseId
+ */
public function __construct($caseId) {
$this->caseId = $caseId;
$this->flush();
}
/**
- * Get a list of all activities in the case
+ * Get a list of all activities in the case.
*
* @return array
* list of activity records (api/v3 format)
}
/**
- * Get a single activity record by type
+ * Get a single activity record by type.
*
* @param string $type
* @throws \Civi\CCase\Exception\MultipleActivityException
/**
* @return string
+ * @throws \CRM_Core_Exception
*/
public function getCaseType() {
if ($this->caseType === NULL) {
}
/**
- * @return SimpleXMLElement|NULL
+ * @return \SimpleXMLElement|NULL
*/
public function getXml() {
if ($this->xml === NULL) {
}
/**
- * Flush any cached information
- *
- * @return void
+ * Flush any cached information.
*/
public function flush() {
$this->case = NULL;