comparison vendor/symfony/http-kernel/Profiler/Profile.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
42 * @var Profile[] 42 * @var Profile[]
43 */ 43 */
44 private $children = array(); 44 private $children = array();
45 45
46 /** 46 /**
47 * Constructor.
48 *
49 * @param string $token The token 47 * @param string $token The token
50 */ 48 */
51 public function __construct($token) 49 public function __construct($token)
52 { 50 {
53 $this->token = $token; 51 $this->token = $token;
73 return $this->token; 71 return $this->token;
74 } 72 }
75 73
76 /** 74 /**
77 * Sets the parent token. 75 * Sets the parent token.
78 *
79 * @param Profile $parent
80 */ 76 */
81 public function setParent(Profile $parent) 77 public function setParent(Profile $parent)
82 { 78 {
83 $this->parent = $parent; 79 $this->parent = $parent;
84 } 80 }
166 162
167 return $this->time; 163 return $this->time;
168 } 164 }
169 165
170 /** 166 /**
171 * @param int The time 167 * @param int $time The time
172 */ 168 */
173 public function setTime($time) 169 public function setTime($time)
174 { 170 {
175 $this->time = $time; 171 $this->time = $time;
176 } 172 }
214 } 210 }
215 } 211 }
216 212
217 /** 213 /**
218 * Adds the child token. 214 * Adds the child token.
219 *
220 * @param Profile $child
221 */ 215 */
222 public function addChild(Profile $child) 216 public function addChild(Profile $child)
223 { 217 {
224 $this->children[] = $child; 218 $this->children[] = $child;
225 $child->setParent($this); 219 $child->setParent($this);
266 } 260 }
267 } 261 }
268 262
269 /** 263 /**
270 * Adds a Collector. 264 * Adds a Collector.
271 *
272 * @param DataCollectorInterface $collector A DataCollectorInterface instance
273 */ 265 */
274 public function addCollector(DataCollectorInterface $collector) 266 public function addCollector(DataCollectorInterface $collector)
275 { 267 {
276 $this->collectors[$collector->getName()] = $collector; 268 $this->collectors[$collector->getName()] = $collector;
277 } 269 }