public function __construct(Api $api, $per_page = null) { $this->api = $api; if (is_numeric($per_page)) { $this->perPage = $per_page; } }