protected function getGenericDateTime($fieldName, $objectName = "object")
    {
        $date = $this->{$objectName}->{ "get".$fieldName}();
        $this->out[$fieldName] = $date ? $date->format(SPL_T_DATETIMECAST) : "";

        return $this;
    }
protected function getGenericDateTime($fieldName, $objectName = "object")
    {
        $date = $this->{$objectName}->{ "get".$fieldName}();
        $this->out[$fieldName] = $date ? $date->format(SPL_T_DATETIMECAST) : "";

        return $this;
    }
protected function getGenericDateTime ( $ fieldName , $ objectName = "object" ) { $ date = $ this -> { $ objectName } -> { "get" . $ fieldName } ( ) ; $ this -> out [ $ fieldName ] = $ date ? $ date -> format ( SPL_T_DATETIMECAST ) : "" ; return $ this ; }
Common reading of a DateTime Field using Generic Getters & Setters

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

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