/** * Constructor. * * @param mixed $name Diagnosis name or identifier */ public function __construct($name) { if (!array_key_exists('category', static::$properties)) { static::$properties['category'] = function ($diagnosis) { return new DiagnosisCategory($diagnosis['category']); }; } parent::__construct($name, 'diagnoses'); }
/** * Constructor. * * @param mixed $name Diagnosis name or identifier */ public function __construct($name) { parent::__construct($name, 'categories'); }
/** * Constructs a new refresh meta tag * @param string $url URL to refresh to * @param string $seconds Number of seconds to wait before performing the refresh * @return null */ public function __construct($url, $seconds = 3) { $content = $seconds . ';url=' . $url; parent::__construct(self::NAME, $content, true); }