protected function setGenericDateTime($fieldName, $fieldData, $objectName = "object")
    {
        //====================================================================//
        //  Compare Field Data
        $current = $this->{$objectName}->{ "get".$fieldName}();
        if (($current instanceof DateTime) && ($current->format(SPL_T_DATETIMECAST) == $fieldData)) {
            return $this;
        }
        //====================================================================//
        //  Update Field Data
        $this->{$objectName}->{ "set".$fieldName}($fieldData ? new DateTime($fieldData) : null);
        $this->needUpdate($objectName);

        return $this;
    }
protected function setGenericDateTime($fieldName, $fieldData, $objectName = "object")
    {
        //====================================================================//
        //  Compare Field Data
        $current = $this->{$objectName}->{ "get".$fieldName}();
        if (($current instanceof DateTime) && ($current->format(SPL_T_DATETIMECAST) == $fieldData)) {
            return $this;
        }
        //====================================================================//
        //  Update Field Data
        $this->{$objectName}->{ "set".$fieldName}($fieldData ? new DateTime($fieldData) : null);
        $this->needUpdate($objectName);

        return $this;
    }
protected function setGenericDateTime ( $ fieldName , $ fieldData , $ objectName = "object" ) { //====================================================================// //  Compare Field Data $ current = $ this -> { $ objectName } -> { "get" . $ fieldName } ( ) ; if ( ( $ current instanceof DateTime ) && ( $ current -> format ( SPL_T_DATETIMECAST ) == $ fieldData ) ) { return $ this ; } //====================================================================// //  Update Field Data $ this -> { $ objectName } -> { "set" . $ fieldName } ( $ fieldData ? new DateTime ( $ fieldData ) : null ) ; $ this -> needUpdate ( $ objectName ) ; return $ this ; }
Common Writing of a DateTime Field using Generic Getters & Setters

@param string $fieldName  Suffix for Getter & Setter (ie: Product => getProduct() & setProduct())
@param mixed  $fieldData  Field Data
@param string $objectName Name of private object to read (Default : "object")

@return self
Common Writing of a DateTime Field using Generic Getters & Setters