/** * Creates a new image * * @param string $path The image file path */ public function __construct($path) { parent::__construct($path); if (!is_array(@getimagesize($this->path))) { throw new DualityException('Duality Error: invalid image', DualityException::E_FILE_INVALIDTYPE); } }
/** * Holds the stream file path * * @param string $path The file path */ public function __construct($path) { parent::__construct($path); }