public function __construct(ImageNode $image, $document = null) { $this->image = $image; $this->document = $document; }