public function __construct($src, $width, $height) { $this->src = (string) $src; $this->width = (int) $width; $this->height = (int) $height; }