public function __construct($memory, $memoryLimit, $isGlobal = false, $triggerCount = 0) { $this->memory = $memory; $this->memoryLimit = $memoryLimit; $this->global = (bool) $isGlobal; $this->triggerCount = (int) $triggerCount; }