public function __construct() { parent::__construct(); if (!self::$instanceId) { self::$instanceId = 1; } else { self::$instanceId++; } }