```php
$this->size = intval($size)
```
would look better IMHO