util/PropertyAccessor.php
public static function getSafeDatePropertyFromTimestamp(\stdClass $object, ...$properties)
    {
        $val = self::getSafeProperty($object, ...$properties);
        if ($val === null || !\is_numeric($val))
        {
            return null;
        }
        $return = new Carbon();
        $return->setTimestamp($val);
        return $return;
    }
public static function getSafeDatePropertyFromTimestamp(\stdClass $object, ...$properties)
    {
        $val = self::getSafeProperty($object, ...$properties);
        if ($val === null || !\is_numeric($val))
        {
            return null;
        }
        $return = new Carbon();
        $return->setTimestamp($val);
        return $return;
    }
public static function getSafeDatePropertyFromTimestamp ( \ stdClass $ object , ... $ properties ) { $ val = self :: getSafeProperty ( $ object , ... $ properties ) ; if ( $ val === null || ! \ is_numeric ( $ val ) ) { return null ; } $ return = new Carbon ( ) ; $ return -> setTimestamp ( $ val ) ; return $ return ; }
Returns a carbon object for a given timestamp.
@param \stdClass $object
@param array ...$properties
@return Carbon|null
Returns a carbon object for a given timestamp .