public function __construct($instagram, $userId, $maxId = null) { parent::__construct($instagram); $this->userId = $userId; if (!empty($maxId)) { $this->addParam("max_id", $maxId); } }