* @return boolean The result of comparing both's unique ID
*/
public final function equals ($object) {
- if ((defined('DEBUG_SYSTEM')) && (is_object($this->getDebugInstance()))) $this->getDebugInstance()->output(sprintf("[%s:] Ist <strong>%s</strong>=<strong>%s</strong>?<br />\n",
- $this->__toString(),
- $this->__toString(),
- $object->__toString()
- ));
return ($this->getUniqueID() == $object->getUniqueID());
}
*/
public function itemMatches ($itemInstance) {
return (
- ($this->__toString() == $itemInstance->__toString())
- && ($this->getPartDescr() == $itemInstance->getPartDescr())
+ (
+ $this->__toString() == $itemInstance->__toString()
+ ) && (
+ $this->getPartDescr() == $itemInstance->getPartDescr()
+ )
);
}
* @throws InvalidArrayCountException If the array contains less or
* more than two elements
*/
- public function getPathFileNameFromObject () {
+ public final function getPathFileNameFromObject () {
// Get the main object's unique ID. We use this as a path/filename combination
$pathFile = $this->getUniqueID();
* @throws MissingMethodException If the required method
* toString() is missing
*/
- public function getObjectFromCachedData ($uniqueID) {
+ public final function getObjectFromCachedData ($uniqueID) {
// Get instance for file handler
$inputHandler = $this->getIOInstance();