# Passing arguments with Timer class

**URL:** <https://forum.kirupa.com/t/passing-arguments-with-timer-class/251959>\
**Category:** Uncategorized\
**Created:** [February 14, 2008, 11:55am UTC](https://forum.kirupa.com/t/passing-arguments-with-timer-class/251959 "2008-02-14T11:55:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unindexed](https://avatars.discourse-cdn.com/v4/letter/u/e47774/32.png) [@unindexed](https://forum.kirupa.com/u/unindexed)\
**Post date:** [February 14, 2008, 11:55am UTC](https://forum.kirupa.com/t/passing-arguments-with-timer-class/251959/1 "2008-02-14T11:55:19Z")

</div>

Hi,  
I’ve got this:

```php
myTimer = new Timer(delay * 1000, 1);
myTimer.addEventListener(TimerEvent.TIMER, start_after_delay);
myTimer.start();

```

and I need to pass extra parameters to the EventListener function. I was trying to extend Timer and TimerEvent class - but everything fails. Any ideas?
