Im planning to develop a file handling class, which performs nessary file operation , such as moving the file, ensuring the file type and size. And also an ImageResize class which resizes image to a specific width or height , or write watermark on the image. My question is , Is a Imageresize.php class composition of FileHandling.php . Which I mean you cannot perform ImageResize method without creating the object of filehandling.
Since the ImageResize class will need some methods from the FileHandling, and it's likely that you'll need more classes to work on various sections of the files, create the FileHandling as an interface, and let ImageResize class implement it. Other classes that require the FileHandling interface can also implement it when needed.